INNER CODE UNIT · Rust

from

tensorflow/rust · src/lib.rs:550

    fn from(_e: NulError) -> Self {
        invalid_arg!("String contained NUL byte")
    }
}

impl From<Utf8Error> for Status {
    fn from(_e: Utf8Error) -> Self {
        invalid_arg!("String contained invalid UTF-8")
    }
}

impl From<IntoStringError> for Status {
    fn from(e: IntoStringError) -> Self {
        invalid_arg!("Error converting C string to Rust string: {}", e)
    }
}

impl From<ParseIntError> for Status {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…