Home
last modified time | relevance | path

Searched refs:from_i32 (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/crates/num-traits/src/
Dcast.rs436 fn from_i32(n: i32) -> Option<Self> { in from_i32() method
541 fn from_i32(n: i32) -> Option<$T> {
657 fn from_i32(i32);
/third_party/rust/crates/nix/src/
Derrno.rs62 pub const fn from_i32(err: i32) -> Errno { in from_i32() method
63 from_i32(err) in from_i32()
136 ioerror.raw_os_error().map(Errno::from_i32).ok_or(ioerror) in try_from()
141 Errno::from_i32(errno()) in last()
1266 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
1529 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
1756 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
1973 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
2185 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
2399 pub const fn from_i32(e: i32) -> Errno { in from_i32() function
[all …]
Dtime.rs281 Err(Errno::from_i32(ret)) in clock_getcpuclockid()
Dfcntl.rs859 Err(Errno::from_i32(res))
879 Ok(errno) => Err(Errno::from_i32(errno)),
Dunistd.rs3329 return Err(Errno::from_i32(ret));
/third_party/rust/crates/nix/test/
Dtest_mount.rs52 if Errno::from_i32(e.raw_os_error().unwrap()) in test_mount_tmpfs_without_flags_allows_rwx()
/third_party/rust/crates/nix/src/sys/
Daio.rs164 num if num > 0 => Err(Errno::from_i32(num)), in error()
/third_party/rust/crates/num-traits/tests/
Dcast.rs349 assert_eq_from!(from_i8 from_i16 from_i32 from_i64 from_isize); in newtype_from_primitive()
/third_party/rust/crates/nix/src/sys/socket/
Daddr.rs415 pub const fn from_i32(family: i32) -> Option<AddressFamily> { in from_i32() method
1154 AddressFamily::from_i32(unsafe { in family()
2123 match AddressFamily::from_i32(i32::from((*addr).sa_family)) { in from_libc_sockaddr()