Searched refs:as_usize (Results 1 – 12 of 12) sorted by relevance
/external/rust/crates/bindgen/src/ir/ |
D | dot.rs | 40 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()
|
D | item.rs | 938 format!("id_{}", self.id().as_usize()) in exposed_id()
|
D | context.rs | 197 pub fn as_usize(&self) -> usize { in as_usize() method
|
/external/rust/crates/rand/src/seq/ |
D | index.rs | 352 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/ |
D | num.rs | 56 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/ |
D | ready.rs | 154 Ready(val & Ready::ALL.as_usize()) in from_usize() 161 pub(crate) fn as_usize(self) -> usize { in as_usize() method
|
D | scheduled_io.rs | 176 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()
|
D | mod.rs | 332 let token = GENERATION.pack(shared.generation(), ADDRESS.pack(address.as_usize(), 0)); in add_source()
|
/external/rust/crates/rayon-core/src/sleep/ |
D | counters.rs | 33 pub(super) fn as_usize(self) -> usize { in as_usize() method 43 (self.as_usize() & 1) == 0 in is_sleepy()
|
D | mod.rs | 132 jobs_counter: jobs_counter.as_usize(), in announce_sleepy()
|
/external/rust/crates/tokio/src/sync/ |
D | oneshot.rs | 255 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/ |
D | slab.rs | 603 pub(crate) const fn as_usize(self) -> usize { in as_usize() method
|