use super::*;
impl fmt::Display for CircuitState {
#[inline(always)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Closed => f.write_str(STATE_STR_CLOSED),
Self::Open => f.write_str(STATE_STR_OPEN),
Self::HalfOpen => f.write_str(STATE_STR_HALF_OPEN),
}
}
}