Lines Matching defs:fmt
67 impl std::fmt::Display for ContextKind {
68 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
69 self.as_str().unwrap_or_default().fmt(f)
94 impl std::fmt::Display for ContextValue {
95 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97 Self::None => "".fmt(f),
98 Self::Bool(v) => v.fmt(f),
99 Self::String(v) => v.fmt(f),
100 Self::Strings(v) => v.join(", ").fmt(f),
101 Self::StyledStr(v) => v.fmt(f),
105 ", ".fmt(f)?;
107 v.fmt(f)?;
111 Self::Number(v) => v.fmt(f),