Home
last modified time | relevance | path

Searched refs:as_usize (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/bindgen/src/ir/
Ddot.rs40 id.as_usize(), in write_dot_file()
56 id.as_usize(), in write_dot_file()
57 sub_id.as_usize(), in write_dot_file()
77 item.id().as_usize(), in write_dot_file()
78 child.as_usize() in write_dot_file()
Ditem.rs938 format!("id_{}", self.id().as_usize()) in exposed_id()
Dcontext.rs197 pub fn as_usize(&self) -> usize { in as_usize() method
/external/rust/crates/rand/src/seq/
Dindex.rs352 let mut candidates = Vec::with_capacity(length.as_usize()); in sample_efraimidis_spirakis()
355 let weight = weight(index.as_usize()).into(); in sample_efraimidis_spirakis()
371 = candidates.select_nth_unstable(length.as_usize() - amount.as_usize()); in sample_efraimidis_spirakis()
373 let mut result: Vec<N> = Vec::with_capacity(amount.as_usize()); in sample_efraimidis_spirakis()
387 let mut candidates = BinaryHeap::with_capacity(length.as_usize()); in sample_efraimidis_spirakis()
390 let weight = weight(index.as_usize()).into(); in sample_efraimidis_spirakis()
401 let mut result: Vec<N> = Vec::with_capacity(amount.as_usize()); in sample_efraimidis_spirakis()
402 while result.len() < amount.as_usize() { in sample_efraimidis_spirakis()
477 fn as_usize(self) -> usize; in as_usize() method
491 fn as_usize(self) -> usize { in as_usize() method
[all …]
/external/rust/crates/serde_json/src/lexical/
Dnum.rs56 fn as_usize(self) -> usize; in as_usize() method
81 fn as_usize(self) -> usize {
122 as_cast_impl!(usize, as_usize);
/external/rust/crates/tokio/src/io/driver/
Dready.rs154 Ready(val & Ready::ALL.as_usize()) in from_usize()
161 pub(crate) fn as_usize(self) -> usize { in as_usize() method
Dscheduled_io.rs176 Tick::Set(t) => TICK.pack(t as usize, new.as_usize()), in set_readiness()
183 TICK.pack(t as usize, new.as_usize()) in set_readiness()
Dmod.rs332 let token = GENERATION.pack(shared.generation(), ADDRESS.pack(address.as_usize(), 0)); in add_source()
/external/rust/crates/rayon-core/src/sleep/
Dcounters.rs33 pub(super) fn as_usize(self) -> usize { in as_usize() method
43 (self.as_usize() & 1) == 0 in is_sleepy()
Dmod.rs132 jobs_counter: jobs_counter.as_usize(), in announce_sleepy()
/external/rust/crates/tokio/src/sync/
Doneshot.rs255 state: AtomicUsize::new(State::new().as_usize()), in channel()
901 fn as_usize(self) -> usize { in as_usize() method
/external/rust/crates/tokio/src/util/
Dslab.rs603 pub(crate) const fn as_usize(self) -> usize { in as_usize() method