Home
last modified time | relevance | path

Searched refs:as_u64 (Results 1 – 25 of 32) sorted by relevance

12

/external/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/
Dother_api.rs52 assert_eq!(r.as_u64(), 3); in as_num()
69 assert_eq!(b.as_u64(), 250); in as_num()
77 assert_eq!(c.as_u64(), 5000); in as_num()
82 assert_eq!(c.as_u64(), 5000); in as_num()
104 assert_eq!(v0.as_u64(), 0); in string_as_num()
116 assert_eq!(v1.as_u64(), 0); in string_as_num()
129 assert_eq!(v2.as_u64(), 42); in string_as_num()
146 assert_eq!(n.as_u64(), 0); in null_reader()
175 assert_eq!(Reader::get_root(s.as_ref()).unwrap().as_u64(), 0); in get_root_deref_u64()
Drwyw.rs60 xs.iter().enumerate().all(|(i, &x)| r.idx(i).as_u64() == x)
290 assert_eq!(r.idx("b").as_u64(), u64::max_value() - 3); in map_64bit()
307 assert_eq!(r.idx("bar").as_u64(), 33); in index_map()
/external/rust/crates/libm/src/math/
Drint.rs4 let as_u64: u64 = x.to_bits(); in rint() localVariable
5 let exponent: u64 = as_u64 >> 52 & 0x7ff; in rint()
6 let is_positive = (as_u64 >> 63) == 0; in rint()
/external/rust/crates/serde_json/src/lexical/
Dnum.rs54 fn as_u64(self) -> u64; in as_u64() method
71 fn as_u64(self) -> u64 {
120 as_cast_impl!(u64, as_u64);
Dfloat.rs174 if (fp.exp == F::DENORMAL_EXPONENT) && (fp.mant & F::HIDDEN_BIT_MASK.as_u64()) == 0 { in into_float()
180 let mant = fp.mant & F::MANTISSA_MASK.as_u64(); in into_float()
/external/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs493 UInt => self.as_u64() != 0, in as_bool()
505 pub fn as_u64(&self) -> u64 { in as_u64() method
526 try_cast_fn!(as_u32, as_u64, u32);
527 try_cast_fn!(as_u16, as_u64, u16);
528 try_cast_fn!(as_u8, as_u64, u8);
605 UInt => write!(f, "{}", self.as_u64()), in fmt()
Dserialize.rs36 (UInt, W64) | (IndirectUInt, W64) => serializer.serialize_u64(self.as_u64()), in serialize()
Dde.rs180 (UInt, W64) => visitor.visit_u64(self.as_u64()), in deserialize_any()
/external/flatbuffers/tests/rust_usage_test/bin/
Dflexbuffers_alloc_check.rs95 assert_eq!(hammer.idx("damage").as_u64(), 20); in validate_monster()
100 assert_eq!(axe.idx("damage").as_u64(), 30); in validate_monster()
/external/rust/crates/tokio/src/runtime/
Dhandle.rs257 crate::util::trace::task(future, "block_on", None, super::task::Id::next().as_u64()); in block_on()
278 let future = crate::util::trace::task(future, "task", _name, id.as_u64()); in spawn_named()
Druntime.rs276 crate::runtime::task::Id::next().as_u64(), in block_on()
/external/rust/crates/der-parser/src/ber/
Dber.rs448 pub fn as_u64(&self) -> Result<u64, BerError> { in as_u64() method
449 self.content.as_u64() in as_u64()
686 pub fn as_u64(&self) -> Result<u64, BerError> { in as_u64() method
1076 assert_eq!(der_obj.as_u64(), Ok(0x10002)); in test_der_as_u64()
1082 assert_eq!(ber_obj.as_u64(), Ok(0b011011100101110111)); in test_ber_as_u64_bitstring()
1087 ber_obj_with_nonzero_padding.as_u64(), in test_ber_as_u64_bitstring()
/external/rust/crates/tokio/src/task/
Dspawn.rs183 let task = crate::util::trace::task(future, "task", name, id.as_u64());
/external/rust/crates/tokio/src/runtime/task/
Did.rs84 pub(crate) fn as_u64(&self) -> u64 { in as_u64() method
/external/rust/crates/serde_json/src/value/
Dmod.rs627 pub fn as_u64(&self) -> Option<u64> { in as_u64() method
629 Value::Number(n) => n.as_u64(), in as_u64()
Dpartial_eq.rs9 value.as_u64().map_or(false, |i| i == other) in eq_u64()
/external/rust/crates/serde_json/tests/lexical/
Dnum.rs7 let _: u64 = t.as_u64(); in check_as_primitive()
/external/flatbuffers/tests/rust_usage_test/benches/
Dflexbuffers_benchmarks.rs250 assert_eq!(hammer.idx("damage").as_u64(), 20); in validate_monster()
255 assert_eq!(axe.idx("damage").as_u64(), 30); in validate_monster()
/external/crosvm/hypervisor/src/haxm/
Dwin.rs126 vcpu_run_handle.fingerprint().as_u64(), in take_run_handle()
Dunix.rs95 vcpu_run_handle.fingerprint().as_u64(), in take_run_handle()
/external/rust/crates/serde_json/src/
Dnumber.rs134 self.as_u64().is_some() in is_u64()
218 pub fn as_u64(&self) -> Option<u64> { in as_u64() method
486 if let Some(u) = self.as_u64() {
/external/rust/crates/der-parser/
DCHANGELOG.md120 - Implement the `as_u64` and `as_u32` methods for BerObjects with contents of type `BerObjectConten…
275 - Add function `DerObject::as_u64`
/external/crosvm/hypervisor/src/gunyah/
Dmod.rs705 vcpu_run_handle.fingerprint().as_u64(), in take_run_handle()
740 != run_handle.fingerprint().as_u64() in run()
/external/crosvm/hypervisor/src/
Dlib.rs216 pub fn as_u64(&self) -> u64 { in as_u64() method
/external/rust/crates/tokio/src/runtime/blocking/
Dpool.rs372 task.id = id.as_u64(), in spawn_blocking_inner()

12