isLevel method

bool isLevel(
  1. LogLevel other
)

Implementation

bool isLevel(LogLevel other) {
  if (value == 0 || other.value == 0) {
    return value == 0 && other.value == 0;
  } else {
    return (value & other.value) == other.value;
  }
}