Trait mesh_protobuf::CopyExtend

source ·
pub trait CopyExtend<T> {
    // Required methods
    fn push(&mut self, item: T)
       where T: Copy;
    fn extend_from_slice(&mut self, items: &[T])
       where T: Copy;
}
Expand description

Trait for collections that can be extended by a slice of T: Copy.

Required Methods§

source

fn push(&mut self, item: T)
where T: Copy,

Pushes item onto the collection.

source

fn extend_from_slice(&mut self, items: &[T])
where T: Copy,

Extends the collection by items.

Implementations on Foreign Types§

source§

impl<T> CopyExtend<T> for Vec<T>

source§

fn push(&mut self, item: T)
where T: Copy,

source§

fn extend_from_slice(&mut self, items: &[T])
where T: Copy,

Implementors§