MCPcopy Create free account
hub / github.com/hashintel/hash / visit_bool

Method visit_bool

libs/@local/codec/src/serde/constant.rs:68–77  ·  view source on GitHub ↗
(self, boolean: bool)

Source from the content-addressed store, hash-verified

66 }
67
68 fn visit_bool<E>(self, boolean: bool) -> Result<Self::Value, E>
69 where
70 E: de::Error,
71 {
72 if boolean == V {
73 Ok(ConstBool::<V>)
74 } else {
75 Err(E::invalid_value(Unexpected::Bool(boolean), &self))
76 }
77 }
78}
79
80#[cfg(test)]

Callers

nothing calls this directly

Calls 3

OkInterface · 0.85
ErrInterface · 0.85
BoolClass · 0.85

Tested by

no test coverage detected