[−][src]Struct esl01_dag::nameset::NameSet
A NameSet
contains an immutable list of names.
It provides order-preserving iteration and set operations, and is cheaply clonable.
Methods
impl NameSet
[src]
pub fn from_static_names(names: impl IntoIterator<Item = VertexName>) -> NameSet
[src]
Creates from a (short) list of known names.
pub fn from_iter<I>(iter: I) -> NameSet where
I: IntoIterator<Item = Result<VertexName>> + 'static,
<I as IntoIterator>::IntoIter: Send + Sync,
[src]
I: IntoIterator<Item = Result<VertexName>> + 'static,
<I as IntoIterator>::IntoIter: Send + Sync,
Creates from a (lazy) iterator of names.
pub fn difference(&self, other: &NameSet) -> NameSet
[src]
Calculates the subset that is only in self, not in other.
pub fn intersection(&self, other: &NameSet) -> NameSet
[src]
Calculates the intersection of two sets.
pub fn union(&self, other: &NameSet) -> NameSet
[src]
Calculates the union of two sets.
pub fn mark_sorted(&self) -> NameSet
[src]
Mark the set as "topologically sorted".
Useful to mark a [LazySet
] as sorted to avoid actual sorting
(and keep the set lazy).
Trait Implementations
impl Clone for NameSet
[src]
impl Debug for NameSet
[src]
impl Deref for NameSet
[src]
type Target = dyn NameSetQuery
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'a> From<(LegacyCodeNeedIdAccess, SpanSet, &'a NameDag)> 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>,