Struct rustc_data_structures::indexed_set::IdxSet[][src]

pub struct IdxSet<T: Idx> { /* fields omitted */ }

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 bitslice this type uses to represent the set of object it holds.

Methods

impl<T: Idx> IdxSet<T>
[src]

Removes all elements

Sets all elements up to universe_size

Removes elem from the set self; returns true iff this changed self.

Adds elem to the set self; returns true iff this changed self.

Important traits for &'a mut R

Important traits for &'a mut R

Returns true iff set self contains elem.

Important traits for &'a [u8]

Important traits for &'a [u8]

Important traits for Iter<'a, T>

Trait Implementations

impl<T: Idx> Borrow<IdxSet<T>> for IdxSetBuf<T>
[src]

Immutably borrows from an owned value. Read more

impl<T: Idx> BorrowMut<IdxSet<T>> for IdxSetBuf<T>
[src]

Mutably borrows from an owned value. Read more

impl<T: Idx> ToOwned for IdxSet<T>
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T: Idx> Debug for IdxSet<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for IdxSet<T>

impl<T> Sync for IdxSet<T>