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

Method format

enumset/src/impl_set.rs:191–199  ·  view source on GitHub ↗
(&self, f: defmt::Formatter)

Source from the content-addressed store, hash-verified

189#[cfg(feature = "defmt")]
190impl<T: EnumSetType + defmt::Format> defmt::Format for EnumSet<T> {
191 fn format(&self, f: defmt::Formatter) {
192 let mut i = self.iter();
193 if let Some(v) = i.next() {
194 defmt::write!(f, "{}", v);
195 for v in i {
196 defmt::write!(f, " | {}", v);
197 }
198 }
199 }
200}
201
202#[cfg(feature = "serde")]

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected