INNER CODE UNIT · Rust
from
tensorflow/rust · src/lib.rs:556
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 {
fn from(e: ParseIntError) -> Self {
invalid_arg!("Error parsing an integer: {}", e)
}
}
impl Error for Status {