[][src]Struct ketos::name::NameSet

pub struct NameSet { /* fields omitted */ }

Represents a set of names

Methods

impl NameSet[src]

pub fn new() -> NameSet[src]

Returns a new NameSet.

pub fn clear(&mut self)[src]

Removes all names from the set.

pub fn contains(&self, name: Name) -> bool[src]

Returns whether the set contains the given name.

pub fn insert(&mut self, name: Name) -> bool[src]

Inserts the given name into the set. Returns true if the name was not already contained.

pub fn into_slice(self) -> NameSetSlice[src]

Lowers the set into a NameSetSlice, which may not receive new name values.

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

Returns whether the set is empty.

Important traits for SetIter<'a>
pub fn iter(&self) -> SetIter[src]

Returns an iterator over the set of contained names.

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

Returns the number of names contained in the set.

Trait Implementations

impl Clone for NameSet[src]

impl Debug for NameSet[src]

impl Default for NameSet[src]

impl Eq for NameSet[src]

impl FromIterator<Name> for NameSet[src]

impl<'a> IntoIterator for &'a NameSet[src]

type Item = Name

The type of the elements being iterated over.

type IntoIter = SetIter<'a>

Which kind of iterator are we turning this into?

impl PartialEq<NameSet> for NameSet[src]

impl StructuralEq for NameSet[src]

impl StructuralPartialEq for NameSet[src]

Auto Trait Implementations

impl RefUnwindSafe for NameSet

impl Send for NameSet

impl Sync for NameSet

impl Unpin for NameSet

impl UnwindSafe for NameSet

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,