Lines Matching defs:from
104 /// Creates an [`Error`] from a kernel error code.
136 /// Creates an [`Error`] from a kernel error code.
148 /// Creates an [`Error`] from a kernel error code.
217 fn from(_: AllocError) -> Error {
223 fn from(_: TryFromIntError) -> Error {
229 fn from(_: Utf8Error) -> Error {
235 fn from(_: LayoutError) -> Error {
241 fn from(_: fmt::Error) -> Error {
247 fn from(e: core::convert::Infallible) -> Error {
488 /// from inside `extern "C"` functions that need to return an integer error result.
490 /// `T` should be convertible from an `i16` via `From<i16>`.
517 Err(e) => T::from(e.to_errno() as i16),