[][src]Struct esl01_dag::nameset::NameSet

pub struct 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]

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.

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]

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>,