[][src]Struct esl01_dag::spanset::Span

pub struct Span { /* fields omitted */ }

Range low..=high. low must be <= high.

Methods

impl Span[src]

pub fn new(low: Id, high: Id) -> Self[src]

pub fn count(self) -> u64[src]

pub fn nth(self, n: u64) -> Option<Id>[src]

Get the n-th Id in this Span.

Similar to SpanSet, ids are sorted in descending order. The 0-th Id is high.

pub fn full() -> Self[src]

Construct a full Span that contains everything. Warning: The Id in this span might be unknown to an actual storage.

Trait Implementations

impl Clone for Span[src]

impl Copy for Span[src]

impl Debug for Span[src]

impl Eq for Span[src]

impl From<Id> for Span[src]

impl From<RangeInclusive<Id>> for Span[src]

impl From<Span> for RangeInclusive<Id>[src]

impl Ord for Span[src]

impl PartialEq<Span> for Span[src]

impl PartialOrd<Span> for Span[src]

impl StructuralEq for Span[src]

Auto Trait Implementations

impl RefUnwindSafe for Span

impl Send for Span

impl Sync for Span

impl Unpin for Span

impl UnwindSafe for Span

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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>,