Struct ketos::name::NameSetSlice [] [src]

pub struct NameSetSlice {
    // some fields omitted
}

Represents a set of names.

New names cannot be inserted into the set.

Methods

impl NameSetSlice
[src]

fn contains(&self, name: Name) -> bool

Returns whether the set contains the given name.

fn into_name_set(self) -> NameSet

Elevates the set into a NameSet, which may receive new name values.

fn is_empty(&self) -> bool

Returns whether the set is empty.

fn iter(&self) -> SetIter

Returns an iterator over names in the set.

fn len(&self) -> usize

Returns the number of names in the set.

Trait Implementations

impl PartialEq for NameSetSlice
[src]

fn eq(&self, __arg_0: &NameSetSlice) -> bool

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

fn ne(&self, __arg_0: &NameSetSlice) -> bool

This method tests for !=.

impl Eq for NameSetSlice
[src]

impl Default for NameSetSlice
[src]

fn default() -> NameSetSlice

Returns the "default value" for a type. Read more

impl Debug for NameSetSlice
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for NameSetSlice
[src]

fn clone(&self) -> NameSetSlice

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl FromIterator<Name> for NameSetSlice
[src]

fn from_iter<I>(iterator: I) -> Self where I: IntoIterator<Item=Name>

Creates a value from an iterator. Read more

impl<'a> IntoIterator for &'a NameSetSlice
[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?

fn into_iter(self) -> SetIter<'a>

Creates an iterator from a value. Read more