Lines Matching refs:Result
114 fn into_errno_result(self) -> Result<Self::Out, Errno>; in into_errno_result()
132 fn into_errno_result(self) -> Result<Self::Out, Errno> {
199 pub fn into_io_result<T: GetErrno>(value: T) -> io::Result<T::Out> { in into_io_result()
232 pub fn into_neg_errno<T: MergeErrno, E: Into<Errno>>(value: Result<T, E>) -> T::Out { in into_neg_errno()
248 let ok: io::Result<_> = Ok(42u8); in test_from_u8()
251 let err: io::Result<u8> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u8()
255 let os_err: io::Result<u8> = Err(io::Error::from_raw_os_error(10)); in test_from_u8()
262 let ok: io::Result<_> = Ok(1234u16); in test_from_u16()
265 let err: io::Result<u16> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u16()
269 let os_err: io::Result<u16> = Err(io::Error::from_raw_os_error(10)); in test_from_u16()
286 let ok: io::Result<_> = Ok(1234u32); in test_from_u32()
289 let err: io::Result<u32> = Err(io::ErrorKind::PermissionDenied.into()); in test_from_u32()
293 let os_err: io::Result<u32> = Err(io::Error::from_raw_os_error(10)); in test_from_u32()
310 let ok: io::Result<_> = Ok(1234u64); in test_from_u64()
313 let err: io::Result<u64> = Err(io::ErrorKind::InvalidInput.into()); in test_from_u64()
317 let os_err: io::Result<u64> = Err(io::Error::from_raw_os_error(6)); in test_from_u64()
334 let ok: io::Result<_> = Ok(()); in test_from_unit()
337 let err: io::Result<()> = Err(io::ErrorKind::OutOfMemory.into()); in test_from_unit()
341 let os_err: io::Result<()> = Err(io::Error::from_raw_os_error(2)); in test_from_unit()