[][src]Struct ipld_block_builder::CacheBatch

pub struct CacheBatch<C, T> { /* fields omitted */ }

Typed batch.

Implementations

impl<C: Encoder, T: Encode<C::Codec>> CacheBatch<C, T>[src]

pub fn new(codec: C) -> Self[src]

Creates a new batch.

pub fn with_capacity(codec: C, capacity: usize) -> Self[src]

Creates a new batch with capacity.

pub fn insert(&mut self, value: T) -> Result<&Cid>[src]

Inserts a value into the batch.

Auto Trait Implementations

impl<C, T> RefUnwindSafe for CacheBatch<C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<C, T> Send for CacheBatch<C, T> where
    C: Send,
    T: Send

impl<C, T> Sync for CacheBatch<C, T> where
    C: Sync,
    T: Sync

impl<C, T> Unpin for CacheBatch<C, T> where
    C: Unpin,
    T: Unpin

impl<C, T> UnwindSafe for CacheBatch<C, T> where
    C: 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.