MCPcopy Create free account
hub / github.com/bitflags/bitflags / expecting

Method expecting

src/external/serde.rs:51–53  ·  view source on GitHub ↗
(&self, formatter: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

49 type Value = B;
50
51 fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
52 formatter.write_str("a string value of `|` separated flags")
53 }
54
55 fn visit_str<E: Error>(self, flags: &str) -> Result<Self::Value, E> {
56 parser::from_str(flags).map_err(|e| E::custom(e))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected