/third_party/rust/crates/serde/test_suite/tests/ui/type-attribute/ |
D | try_from.stderr | 1 error: failed to parse type: try_from = "Option<T" 2 --> tests/ui/type-attribute/try_from.rs:4:20 4 4 | #[serde(try_from = "Option<T")]
|
D | try_from.rs | 4 #[serde(try_from = "Option<T")]
|
/third_party/rust/crates/rustix/src/process/ |
D | prctl.rs | 63 TryFrom::try_from(value) in prctl_get_at_arg2() 126 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() method 331 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() method 390 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method 451 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method 537 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method 557 MachineCheckMemoryCorruptionKillPolicy::try_from(r) in machine_check_memory_corruption_kill_policy() 662 let fd = usize::try_from(fd.as_raw_fd()).map_err(|_r| io::Errno::RANGE)?; in set_executable_file() 855 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method 873 FloatingPointMode::try_from(r) in floating_point_mode() [all …]
|
/third_party/rust/crates/serde/test_suite/tests/ui/transparent/ |
D | with_try_from.stderr | 1 error: #[serde(transparent)] is not allowed with #[serde(try_from = "...")] 4 4 | / #[serde(transparent, try_from = "u64")]
|
D | with_try_from.rs | 4 #[serde(transparent, try_from = "u64")]
|
/third_party/rust/crates/serde/test_suite/tests/ui/conflict/ |
D | from-try-from.stderr | 1 error: #[serde(from = "...")] and #[serde(try_from = "...")] conflict with each other 4 4 | / #[serde(from = "u64", try_from = "u64")]
|
D | from-try-from.rs | 4 #[serde(from = "u64", try_from = "u64")]
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | vec_tests.rs | 37 let x = VecType::try_from(&[5, 1]).unwrap(); in simple_test() 73 let x = VecType::try_from(&[5, 1]).unwrap(); in cmp_test() 79 let x = VecType::try_from(&[5, 1, 9]).unwrap(); in cmp_test() 80 let y = VecType::try_from(&[6, 2, 8]).unwrap(); in cmp_test() 85 let x = VecType::try_from(&[0, 1, 9]).unwrap(); in cmp_test() 86 let y = VecType::try_from(&[4294967295, 0, 9]).unwrap(); in cmp_test() 93 let mut x = VecType::try_from(&[0, 1, 9]).unwrap(); in math_test()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/ |
D | objc_inheritance.rs | 52 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method 87 fn try_from(parent: Bar) -> Result<Baz, Self::Error> { in try_from() method 105 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-5/ |
D | objc_inheritance.rs | 52 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method 87 fn try_from(parent: Bar) -> Result<Baz, Self::Error> { in try_from() method 105 fn try_from(parent: Foo) -> Result<Baz, Self::Error> { in try_from() method
|
/third_party/rust/crates/nix/src/sys/ |
D | wait.rs | 161 Signal::try_from(libc::WTERMSIG(status)) in term_signal() 173 Signal::try_from(libc::WSTOPSIG(status)) in stop_signal() 276 Signal::try_from(si_status)?, in from_siginfo() 280 WaitStatus::Stopped(pid, Signal::try_from(si_status)?) in from_siginfo() 290 Signal::try_from(si_status & 0xff)?, in from_siginfo()
|
D | termios.rs | 1220 fn try_from() { in try_from() function 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()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | cipher_ctx.rs | 223 let pub_keys_len = i32::try_from(pub_keys.len()).unwrap(); in seal_init() 270 let len = c_int::try_from(encrypted_key.len()).unwrap(); in open_init() 404 let len = c_int::try_from(len).unwrap(); in set_iv_length() 443 let len = c_int::try_from(tag.len()).unwrap(); in tag() 462 let len = c_int::try_from(len).unwrap(); in set_tag_length() 479 let len = c_int::try_from(tag.len()).unwrap(); in set_tag() 508 let len = c_int::try_from(len).unwrap(); in set_data_len() 588 let inlen = c_int::try_from(input.len()).unwrap(); in cipher_update_unchecked() 646 let inlen = c_int::try_from(inlen).unwrap(); in cipher_update_inplace()
|
D | pkey.rs | 806 fn try_from(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in try_from() method 814 fn try_from(pkey: PKey<T>) -> Result<EcKey<T>, ErrorStack> { in try_from() method 822 fn try_from(rsa: Rsa<T>) -> Result<PKey<T>, ErrorStack> { in try_from() method 830 fn try_from(pkey: PKey<T>) -> Result<Rsa<T>, ErrorStack> { in try_from() method 838 fn try_from(dsa: Dsa<T>) -> Result<PKey<T>, ErrorStack> { in try_from() method 846 fn try_from(pkey: PKey<T>) -> Result<Dsa<T>, ErrorStack> { in try_from() method 855 fn try_from(dh: Dh<T>) -> Result<PKey<T>, ErrorStack> { in try_from() method 863 fn try_from(pkey: PKey<T>) -> Result<Dh<T>, ErrorStack> { in try_from() method
|
D | pkey_ctx.rs | 505 let len = LenType::try_from(label.len()).unwrap(); in set_rsa_oaep_label() 549 let len = c_int::try_from(key.len()).unwrap(); in set_keygen_mac_key() 615 let len = c_int::try_from(key.len()).unwrap(); in set_hkdf_key() 640 let len = c_int::try_from(salt.len()).unwrap(); in set_hkdf_salt() 665 let len = c_int::try_from(info.len()).unwrap(); in add_hkdf_info()
|
/third_party/rust/crates/unicode-ident/generate/src/ |
D | main.rs | 50 let Ok(new) = u8::try_from(chunkmap.len()) else { in main() 115 match u8::try_from(halfdense.len() / (CHUNK / 2)) { in main() 132 match u8::try_from(halfdense.len() / (CHUNK / 2) - 1) { in main()
|
/third_party/rust/crates/rustix/src/thread/ |
D | prctl.rs | 110 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() method 494 let value = usize::try_from(value.map_or(0, NonZeroU64::get)).map_err(|_r| io::Errno::RANGE)?; in set_current_timer_slack() 688 u32::try_from(vector_length_in_bytes).map_err(|_r| io::Errno::RANGE)?; in set_sve_vector_length_configuration() 832 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() method 894 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method
|
/third_party/rust/crates/nix/test/sys/ |
D | test_signalfd.rs | 25 let signo = Signal::try_from(res.ssi_signo as i32).unwrap(); in test_signalfd()
|
D | test_signal.rs | 88 let signal = Signal::try_from(signal).unwrap(); in test_sigaction_handler()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
D | objc_protocol_inheritance.rs | 55 fn try_from(parent: Foo) -> Result<Bar, Self::Error> { in try_from() method
|
/third_party/rust/crates/memchr/src/memmem/prefilter/ |
D | mod.rs | 460 rare1i = u8::try_from(i).unwrap(); in new() 463 rare2i = u8::try_from(i).unwrap(); in new()
|
/third_party/rust/crates/nix/test/ |
D | test_timer.rs | 16 let signal = Signal::try_from(raw_signal).unwrap(); in handle_sigalarm()
|
/third_party/qrcodegen/rust/src/ |
D | lib.rs | 245 bb.append_bits(u32::try_from(seg.numchars).unwrap(), seg.mode.num_char_count_bits(version)); in encode_segments_advanced() 254 bb.append_bits(0, u8::try_from(numzerobits).unwrap()); in encode_segments_advanced() 256 bb.append_bits(0, u8::try_from(numzerobits).unwrap()); in encode_segments_advanced() 1021 accumdata = accumdata * 45 + u32::try_from(i).unwrap(); in make_alphanumeric()
|
/third_party/rust/crates/minimal-lexical/src/ |
D | heapvec.rs | 32 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from() method
|
/third_party/rust/crates/nix/src/ |
D | ifaddrs.rs | 74 u8::try_from(mem::size_of::<libc::sockaddr_storage>()).unwrap(); in workaround_xnu_bug()
|