[−][src]Struct ipld_collections::list::List
Implementations
impl<S: Store, T: Clone + DagCbor + Debug> 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]
store: S,
cache_size: usize,
width: u32,
items: impl Iterator<Item = T>
) -> Result<Self>
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 fn iter<'a>(&'a mut self) -> Iter<'a, S, T>
[src]
Auto Trait Implementations
impl<S, T> RefUnwindSafe for List<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for List<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for List<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S, T> Unpin for List<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for List<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
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> Same<T> for T
type Output = T
Should always be Self
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>,