Struct raii_map::set::Set[][src]

pub struct Set<T>(_);

A set in which the presence of an entry is tied to the lifetime of a RAII handle returned by the insertion.

Implementations

impl<T: Ord> Set<T>[src]

pub fn new() -> Self[src]

Creates a new, empty set.

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

Gets the number of items in the set.

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

Checks if the set is empty.

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

Gets an iterator over the contents of the set.

Trait Implementations

impl<T: Debug> Debug for Set<T>[src]

impl<T: Ord> Default for Set<T>[src]

impl<T: Eq> Eq for Set<T>[src]

impl<T: Ord> IntoIterator for Set<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = <BTreeSet<T> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<'a, T: Ord> IntoIterator for &'a Set<T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = <&'a BTreeSet<T> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<T: PartialEq> PartialEq<Set<T>> for Set<T>[src]

impl<T> StructuralEq for Set<T>[src]

impl<T> StructuralPartialEq for Set<T>[src]

Auto Trait Implementations

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

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

impl<T> Unpin for Set<T>

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, 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.