INNER CODE UNIT · Rust

custom

nativeshell/nativeshell · nativeshell/src/codec/value/mod.rs:116

    fn custom<T>(msg: T) -> Self
    where
        T: fmt::Display,
    {
        ValueError::Message(msg.to_string())
    }
}

impl serde::de::Error for ValueError {
    fn custom<T: fmt::Display>(msg: T) -> Self {
        ValueError::Message(msg.to_string())
    }
}

impl std::error::Error for ValueError {}

impl serde::Serialize for Value {
    #[inline]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…