Skip to main content

Push

Trait Push 

Source
pub trait Push<T>: Collection {
    type Output;

    // Required method
    fn push(&mut self, value: T) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn push(&mut self, value: T) -> Self::Output

Push an value and return it’s index.

Implementations on Foreign Types§

Source§

impl Push<char> for String

Source§

type Output = ()

Source§

fn push(&mut self, value: char) -> <String as Push<char>>::Output

Source§

impl<'b> Push<&'b OsStr> for OsString

Available on crate feature std only.
Source§

type Output = ()

Source§

fn push(&mut self, value: &'b OsStr) -> <OsString as Push<&'b OsStr>>::Output

Source§

impl<T> Push<T> for LinkedList<T>

Source§

type Output = ()

Source§

fn push(&mut self, value: T) -> <LinkedList<T> as Push<T>>::Output

Source§

impl<T> Push<T> for Vec<T>

Source§

type Output = usize

Source§

fn push(&mut self, value: T) -> <Vec<T> as Push<T>>::Output

Source§

impl<T, const CAP: usize> Push<T> for ArrayVec<T, CAP>

Source§

type Output = usize

Source§

fn push(&mut self, value: T) -> <ArrayVec<T, CAP> as Push<T>>::Output

Implementors§

Source§

impl<P> Push<P> for PathBuf
where P: AsRef<Path>,

Available on crate feature std only.
Source§

impl<T> Push<T> for BinaryHeap<T>
where T: Ord,

Source§

impl<T> Push<T> for VecDeque<T>

Source§

impl<T, Gen, C> Push<T> for GenSeq<T, Gen, C>
where C: AsRef<[Entry<T, Gen>]> + AsMut<[Entry<T, Gen>]> + Push<Entry<T, Gen>>, Gen: IGeneration,

Source§

type Output = GenIDOf<T, Gen>