Struct dlist::DList[][src]

pub struct DList<V, M: Measurer<V>> { /* fields omitted */ }

Implementations

impl<V, Me> DList<V, Me> where
    Me: Measurer<V>, 
[src]

pub fn new(measurer: Me) -> Self[src]

impl<V, M> DList<V, M> where
    M: Measurer<V>, 
[src]

pub fn insert(&mut self, index: usize, val: V)[src]

pub fn append(&mut self, val: V)[src]

pub fn size(&self) -> usize[src]

pub fn length(&self) -> M::Measure[src]

pub fn get_by_index(&self, index: usize) -> Option<ItemInfo<'_, V, M::Measure>>[src]

pub fn get_by_distance(
    &self,
    distance: M::Measure
) -> Option<ItemInfo<'_, V, M::Measure>>
[src]

pub fn delete(&mut self, index: usize)[src]

Auto Trait Implementations

impl<V, M> RefUnwindSafe for DList<V, M> where
    M: RefUnwindSafe,
    V: RefUnwindSafe,
    <M as Measurer<V>>::Measure: RefUnwindSafe

impl<V, M> Send for DList<V, M> where
    M: Send,
    V: Send,
    <M as Measurer<V>>::Measure: Send

impl<V, M> Sync for DList<V, M> where
    M: Sync,
    V: Sync,
    <M as Measurer<V>>::Measure: Sync

impl<V, M> Unpin for DList<V, M> where
    M: Unpin

impl<V, M> UnwindSafe for DList<V, M> where
    M: UnwindSafe,
    V: UnwindSafe,
    <M as Measurer<V>>::Measure: UnwindSafe

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