Lines Matching full:into
8 //! into an [`io::Result`] and back.
12 /// An `errno` value that can be converted into an [`io::Error`]
18 // into io::Error by hand. This is the same mapping that the
81 io::Error::from_raw_os_error(errno.into()) in from()
86 let error_kind: ErrorKind = value.into(); in from()
87 error_kind.into() in from()
98 value.kind().into() in from()
107 /// A signed type that can be converted into an
118 /// converted into "positive success/negative `errno`" convention.
173 /// Convert an integer value into a [`io::Result`].
175 /// Positive values are turned into an `Ok` result; negative values
176 /// are interpreted as negated `errno` and turned into an `Err`.
200 value.into_errno_result().map_err(Into::into) in into_io_result()
203 /// Convert a [`Result`] into an integer value, using negative `errno`
212 /// let err: io::Result<()> = Err(ErrorKind::InvalidInput.into());
232 pub fn into_neg_errno<T: MergeErrno, E: Into<Errno>>(value: Result<T, E>) -> T::Out { in into_neg_errno()
235 Err(err) => -T::Out::from(err.into().0), in into_neg_errno()
251 let err: io::Result<u8> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u8()
265 let err: io::Result<u16> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u16()
289 let err: io::Result<u32> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u32()
313 let err: io::Result<u64> = Err(io::ErrorKind::InvalidInput.into()); in test_from_u64()
337 let err: io::Result<()> = Err(io::ErrorKind::OutOfMemory.into()); in test_from_unit()