[][src]Struct regalloc::Set

pub struct Set<T: Eq + Hash> { /* fields omitted */ }

Implementations

impl<T: Eq + Ord + Hash + Copy + Debug> Set<T>[src]

pub fn empty() -> Self[src]

pub fn unit(item: T) -> Self[src]

pub fn two(item1: T, item2: T) -> Self[src]

pub fn card(&self) -> usize[src]

pub fn insert(&mut self, item: T)[src]

pub fn delete(&mut self, item: T)[src]

pub fn is_empty(&self) -> bool[src]

pub fn contains(&self, item: T) -> bool[src]

pub fn intersect(&mut self, other: &Self)[src]

pub fn union(&mut self, other: &Self)[src]

pub fn remove(&mut self, other: &Self)[src]

pub fn intersects(&self, other: &Self) -> bool[src]

pub fn is_subset_of(&self, other: &Self) -> bool[src]

pub fn to_vec(&self) -> Vec<T>[src]

pub fn from_vec(vec: Vec<T>) -> Self[src]

pub fn equals(&self, other: &Self) -> bool[src]

pub fn retain<F>(&mut self, f: F) where
    F: FnMut(&T) -> bool
[src]

pub fn map<F, U>(&self, f: F) -> Set<U> where
    F: Fn(&T) -> U,
    U: Eq + Ord + Hash + Copy + Debug
[src]

pub fn filter_map<F, U>(&self, f: F) -> Set<U> where
    F: Fn(&T) -> Option<U>,
    U: Eq + Ord + Hash + Copy + Debug
[src]

pub fn clear(&mut self)[src]

impl<T: Eq + Hash> Set<T>[src]

pub fn iter(&self) -> SetIter<'_, T>[src]

Trait Implementations

impl<T: Clone + Eq + Hash> Clone for Set<T>[src]

impl<T: Eq + Ord + Hash + Copy + Debug> Debug for Set<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Set<T> where
    T: RefUnwindSafe

impl<T> Send for Set<T> where
    T: Send

impl<T> Sync for Set<T> where
    T: Sync

impl<T> Unpin for Set<T> where
    T: Unpin

impl<T> UnwindSafe for Set<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.