[−][src]Struct ketos::name::NameSet
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]
ⓘImportant traits for SetIter<'a>
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]
fn from_iter<I>(iterator: I) -> Self where
I: IntoIterator<Item = Name>,
[src]
I: IntoIterator<Item = Name>,
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?
ⓘImportant traits for SetIter<'a>fn into_iter(self) -> SetIter<'a>
[src]
ⓘImportant traits for SetIter<'a>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,