Struct rustc_data_structures::indexed_set::IdxSetBuf[][src]

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

Methods

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

Creates set holding every element whose index falls in range 0..universe_size.

Creates set holding no elements.

Methods from Deref<Target = IdxSet<T>>

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]

Efficiently overwrite self with other. Panics if self and other don't have the same length.

Set self = self | other and return true if self changed (i.e., if new bits were added).

Set self = self - other and return true if self changed. (i.e., if any bits were removed).

Set self = self & other and return true if self changed. (i.e., if any bits were removed).

Important traits for Iter<'a, T>

Trait Implementations

impl<T: Eq + Idx> Eq for IdxSetBuf<T>
[src]

impl<T: PartialEq + Idx> PartialEq for IdxSetBuf<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Idx> Clone for IdxSetBuf<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Idx> Encodable for IdxSetBuf<T>
[src]

impl<T: Idx> Decodable for IdxSetBuf<T>
[src]

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> Debug for IdxSetBuf<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Idx> Deref for IdxSetBuf<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T: Idx> DerefMut for IdxSetBuf<T>
[src]

Mutably dereferences the value.

impl<I: Idx, CTX> HashStable<CTX> for IdxSetBuf<I>
[src]

Auto Trait Implementations

impl<T> Send for IdxSetBuf<T>

impl<T> Sync for IdxSetBuf<T>