Push

Trait Push 

Source
pub trait Push<I> {
    type Error;

    // Required method
    fn push(&mut self, input: I) -> Result<(), Self::Error>;
}
Expand description

See Push::push for more information.

Required Associated Types§

Source

type Error

Error

Required Methods§

Source

fn push(&mut self, input: I) -> Result<(), Self::Error>

Pushes an element, increasing the storage length.

Implementations on Foreign Types§

Source§

impl<I, T> Push<I> for &mut T
where T: Push<I>,

Source§

type Error = <T as Push<I>>::Error

Source§

fn push(&mut self, input: I) -> Result<(), Self::Error>

Source§

impl<T> Push<T> for Option<T>

let mut opt = None;
cl_aux::Push::push(&mut opt, 3);
assert_eq!(opt, Some(3));
Source§

type Error = Error

Source§

fn push(&mut self, input: T) -> Result<(), Self::Error>

Source§

impl<T> Push<T> for ()

let mut opt = None;
cl_aux::Push::push(&mut opt, 3);
assert_eq!(opt, Some(3));
Source§

type Error = Error

Source§

fn push(&mut self, _: T) -> Result<(), Self::Error>

Implementors§