[][src]Trait veriform::derive_helpers::TryExtend

pub trait TryExtend<A> {
    fn try_extend<T>(&mut self, iter: T) -> Result<(), ()>
    where
        T: IntoIterator<Item = A>
; }

Fallible version of the Extend trait used for consuming Veriform sequences but with potential max limits (e.g. heapless::Vec size)

Required methods

fn try_extend<T>(&mut self, iter: T) -> Result<(), ()> where
    T: IntoIterator<Item = A>, 

Try to extend this type using the given iterator, returning an error if capacity in the underlying buffer is exceeded

Loading content...

Implementations on Foreign Types

impl<T, N> TryExtend<T> for Vec<T, N> where
    N: ArrayLength<T>, 
[src]

impl<T> TryExtend<T> for Vec<T>[src]

Loading content...

Implementors

Loading content...