INNER CODE UNIT · Rust

from

rkudryashov/graphql-rust-demo · common-utils/src/lib.rs:77

    fn from(source: ParseError) -> Self {
        Self {
            message: source.to_string(),
        }
    }
}

impl From<&str> for CustomError {
    fn from(source: &str) -> Self {
        Self {
            message: String::from(source),
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…