Home
last modified time | relevance | path

Searched refs:try_from (Results 26 - 41 of 41) sorted by relevance

12

/third_party/rust/crates/nix/src/
H A Difaddrs.rs74 u8::try_from(mem::size_of::<libc::sockaddr_storage>()).unwrap(); in workaround_xnu_bug()
H A Dmacros.rs136 fn try_from(x: $repr) -> $crate::Result<Self> { in try_from() functions
/third_party/rust/crates/minimal-lexical/src/
H A Dbigint.rs582 let mut z = VecType::try_from(x)?; in long_mul()
589 let mut zi = VecType::try_from(x)?; in long_mul()
H A Dstackvec.rs31 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from() functions
/third_party/rust/crates/nix/src/sys/
H A Dtermios.rs1220 fn try_from() { in try_from() functions
1221 assert_eq!(Ok(BaudRate::B0), BaudRate::try_from(libc::B0)); in try_from()
1223 BaudRate::try_from(999999999).expect_err("assertion failed"); in try_from()
1225 BaudRate::try_from(99).expect_err("assertion failed"); in try_from()
H A Daio.rs442 AioFsyncMode::try_from(self.aiocb.aiocb.0.aio_lio_opcode).unwrap() in mode()
H A Dsignal.rs570 Signal::try_from(signum.assume_init()).unwrap() in wait()
804 /// let signal = Signal::try_from(signal).unwrap();
/foundation/communication/ipc/example/rust_test/service/src/
H A Dlib.rs75 fn try_from(code: u32) -> IpcResult<Self> { in try_from() functions
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/
H A Dcloud_db.rs36 let db = ipc_conn::Database::try_from(&database)?; in new()
/third_party/rust/crates/nix/src/sys/socket/
H A Dsockopt.rs108 match <$ty>::try_from(getter.assume_init()) { in get()
H A Dmod.rs116 fn try_from(x: i32) -> Result<Self> { in try_from() functions
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dmod.rs491 u32::try_from(v).ok() in pathlen()
2172 let address = <[u8; 16]>::try_from(ipaddress)
2174 .or_else(|_| <[u8; 4]>::try_from(ipaddress).map(IpAddr::from));
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dconnect.rs372 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() functions
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs21331 fn try_from(boxed_slice: Rc<[T]>) -> Result<Self, Self::Error> { in try_from() functions
25672 fn try_from(boxed_slice: Arc<[T]>) -> Result<Self, Self::Error> { in try_from() functions
35981 fn try_from(s: usize) -> Result<Align32, ()> { try_from() functions
49689 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { try_from() functions
51497 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { try_from() functions
[all...]
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dmod.rs4437 fn try_from(parent: #parent_struct) -> Result<#class_name, Self::Error> { in try_from() functions
/third_party/rust/crates/serde/serde_derive/src/
H A Dde.rs400 |v| _serde::__private::TryFrom::try_from(v).map_err(_serde::de::Error::custom)) in deserialize_try_from()

Completed in 98 milliseconds

12