Trait selectors::sink::Push

source ·
pub trait Push<T> {
    // Required method
    fn push(&mut self, value: T);
}
Expand description

A trait to abstract over a push method that may be implemented for different kind of types.

Used to abstract over Array, SmallVec and Vec, and also to implement a type which push method does only tweak a byte when we only need to check for the presence of something.

Required Methods§

source

fn push(&mut self, value: T)

Push a value into self.

Implementations on Foreign Types§

source§

impl<A: Array> Push<<A as Array>::Item> for SmallVec<A>

source§

fn push(&mut self, value: A::Item)

source§

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

source§

fn push(&mut self, value: T)

Implementors§

source§

impl<Impl: SelectorImpl> Push<Component<Impl>> for SelectorBuilder<Impl>