[][src]Struct ipld_collections::list::List

pub struct List<S, T: Clone + DagCbor> { /* fields omitted */ }

Implementations

impl<S: Store, T: Clone + DagCbor> List<S, T>[src]

pub async fn new(store: S, cache_size: usize, width: u32) -> Result<Self>[src]

pub async fn open(store: S, cache_size: usize, root: Cid) -> Result<Self>[src]

pub fn root(&self) -> &Cid[src]

pub async fn from(
    store: S,
    cache_size: usize,
    width: u32,
    items: impl Iterator<Item = T>
) -> Result<Self>
[src]

pub async fn push<'_>(&'_ mut self, value: T) -> Result<()>[src]

pub async fn pop<'_>(&'_ mut self) -> Result<Option<T>>[src]

pub async fn get<'_>(&'_ mut self, __arg1: usize) -> Result<Option<T>>[src]

pub async fn set<'_>(&'_ mut self, _index: usize, _value: T) -> Result<()>[src]

pub async fn len<'_>(&'_ mut self) -> Result<usize>[src]

pub async fn is_empty<'_>(&'_ mut self) -> Result<bool>[src]

pub fn iter(&mut self) -> Iter<S, T>[src]

Auto Trait Implementations

impl<S, T> RefUnwindSafe for List<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<S, T> Send for List<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for List<S, T> where
    S: Sync,
    T: Sync

impl<S, T> Unpin for List<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> UnwindSafe for List<S, T> where
    S: UnwindSafe,
    T: 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> Same<T> for T

type Output = T

Should always be Self

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.