pub trait Accumulate<T>: Default {
    // Required method
    fn try_done(self, field: &'static str) -> Result<T, Error>;
}
Expand description

A type implementing Accumulate<T> is used to accumulate a value of type T.

Required Methods§

source

fn try_done(self, field: &'static str) -> Result<T, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T> Accumulate<Cow<'a, [T]>> for Vec<T>where [T]: ToOwned<Owned = Vec<T>>,

source§

fn try_done(self, _: &'static str) -> Result<Cow<'a, [T]>, Error>

source§

impl<T> Accumulate<Option<T>> for Option<T>

source§

fn try_done(self, _: &'static str) -> Result<Option<T>, Error>

source§

impl<T> Accumulate<Vec<T>> for Vec<T>

source§

fn try_done(self, _: &'static str) -> Result<Vec<T>, Error>

source§

impl<T> Accumulate<T> for Option<T>

source§

fn try_done(self, field: &'static str) -> Result<T, Error>

Implementors§