[−][src]Struct ketos::name::NameSetSlice
Represents a set of names.
New names cannot be inserted into the set.
Methods
impl NameSetSlice
[src]
pub fn contains(&self, name: Name) -> bool
[src]
Returns whether the set contains the given name.
pub fn into_name_set(self) -> NameSet
[src]
Elevates the set into a NameSet
, which may 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 names in the set.
pub fn len(&self) -> usize
[src]
Returns the number of names in the set.
Trait Implementations
impl Clone for NameSetSlice
[src]
fn clone(&self) -> NameSetSlice
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NameSetSlice
[src]
impl Default for NameSetSlice
[src]
fn default() -> NameSetSlice
[src]
impl Eq for NameSetSlice
[src]
impl FromIterator<Name> for NameSetSlice
[src]
fn from_iter<I>(iterator: I) -> Self where
I: IntoIterator<Item = Name>,
[src]
I: IntoIterator<Item = Name>,
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?
ⓘImportant traits for SetIter<'a>fn into_iter(self) -> SetIter<'a>
[src]
ⓘImportant traits for SetIter<'a>
impl PartialEq<NameSetSlice> for NameSetSlice
[src]
fn eq(&self, other: &NameSetSlice) -> bool
[src]
fn ne(&self, other: &NameSetSlice) -> bool
[src]
impl StructuralEq for NameSetSlice
[src]
impl StructuralPartialEq for NameSetSlice
[src]
Auto Trait Implementations
impl RefUnwindSafe for NameSetSlice
impl Send for NameSetSlice
impl Sync for NameSetSlice
impl Unpin for NameSetSlice
impl UnwindSafe for NameSetSlice
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>,