Struct rustc_data_structures::indexed_set::IdxSetBuf
[−]
[src]
pub struct IdxSetBuf<T: Idx> { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Represents a set (or packed family of sets), of some element type
E, where each E is identified by some unique index type T
.
In other words, T
is the type used to index into the bitvector
this type uses to represent the set of object it holds.
Methods
impl<T: Idx> IdxSetBuf<T>
[src]
pub fn new_filled(universe_size: usize) -> Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Creates set holding every element whose index falls in range 0..universe_size.
pub fn new_empty(universe_size: usize) -> Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Creates set holding no elements.
Methods from Deref<Target = IdxSet<T>>
pub fn to_owned(&self) -> IdxSetBuf<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn clear(&mut self)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Removes all elements
pub fn remove(&mut self, elem: &T) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Removes elem
from the set self
; returns true iff this changed self
.
pub fn add(&mut self, elem: &T) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Adds elem
to the set self
; returns true iff this changed self
.
ⓘImportant traits for &'a mut Ipub fn range(&self, elems: &Range<T>) -> &Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for &'a mut Ipub fn range_mut(&mut self, elems: &Range<T>) -> &mut Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn contains(&self, elem: &T) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns true iff set self
contains elem
.
pub fn words(&self) -> &[Word]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn words_mut(&mut self) -> &mut [Word]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn clone_from(&mut self, other: &IdxSet<T>)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn union(&mut self, other: &IdxSet<T>) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn subtract(&mut self, other: &IdxSet<T>) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn intersect(&mut self, other: &IdxSet<T>) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn each_bit<F>(&self, max_bits: usize, f: F) where
F: FnMut(T),
[src]
F: FnMut(T),
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Calls f
on each index value held in this set, up to the
bound max_bits
on the size of universe of indexes.
pub fn reset_to_empty(&mut self)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Removes all elements from this set.
ⓘImportant traits for Elems<'a, T>pub fn elems(&self, universe_size: usize) -> Elems<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<T: Eq + Idx> Eq for IdxSetBuf<T>
[src]
impl<T: PartialEq + Idx> PartialEq for IdxSetBuf<T>
[src]
fn eq(&self, __arg_0: &IdxSetBuf<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IdxSetBuf<T>) -> bool
[src]
This method tests for !=
.
impl<T: Idx> Clone for IdxSetBuf<T>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Idx> Encodable for IdxSetBuf<T>
[src]
fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<T: Idx> Decodable for IdxSetBuf<T>
[src]
fn decode<D: Decoder>(d: &mut D) -> Result<IdxSetBuf<T>, D::Error>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<T: Idx> Borrow<IdxSet<T>> for IdxSetBuf<T>
[src]
impl<T: Idx> BorrowMut<IdxSet<T>> for IdxSetBuf<T>
[src]
fn borrow_mut(&mut self) -> &mut IdxSet<T>
[src]
Mutably borrows from an owned value. Read more
impl<T: Idx> Debug for IdxSetBuf<T>
[src]
fn fmt(&self, w: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Idx> Deref for IdxSetBuf<T>
[src]
type Target = IdxSet<T>
The resulting type after dereferencing.
fn deref(&self) -> &IdxSet<T>
[src]
Dereferences the value.
impl<T: Idx> DerefMut for IdxSetBuf<T>
[src]
impl<I: Idx, CTX> HashStable<CTX> for IdxSetBuf<I>
[src]
fn hash_stable<W: StableHasherResult>(
&self,
ctx: &mut CTX,
hasher: &mut StableHasher<W>
)
[src]
&self,
ctx: &mut CTX,
hasher: &mut StableHasher<W>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?