MCPcopy Create free account
hub / github.com/Lymia/enumset / format

Method format

enumset/src/impl_set_mixed.rs:54–59  ·  view source on GitHub ↗
(&self, f: defmt::Formatter)

Source from the content-addressed store, hash-verified

52#[cfg(feature = "defmt")]
53impl<T: EnumSetType + defmt::Format> defmt::Format for MixedValue<T> {
54 fn format(&self, f: defmt::Formatter) {
55 match self {
56 MixedValue::Valid(v) => defmt::write!(f, "{}", v),
57 MixedValue::Invalid(b) => defmt::write!(f, "[{}]", b),
58 }
59 }
60}
61
62/// A variant of [`EnumSet`] that preserves unknown bits.

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected