rustc_data_structures::snapshot_vec

Trait VecLike

Source
pub trait VecLike<D>:
    AsRef<[<D as SnapshotVecDelegate>::Value]>
    + AsMut<[<D as SnapshotVecDelegate>::Value]>
    + Rollback<UndoLog<D>>{
    // Required methods
    fn push(&mut self, item: <D as SnapshotVecDelegate>::Value);
    fn len(&self) -> usize;
    fn reserve(&mut self, size: usize);
}

Required Methods§

Source

fn push(&mut self, item: <D as SnapshotVecDelegate>::Value)

Source

fn len(&self) -> usize

Source

fn reserve(&mut self, size: usize)

Implementations on Foreign Types§

Source§

impl<D> VecLike<D> for &mut Vec<<D as SnapshotVecDelegate>::Value>

Source§

fn push(&mut self, item: <D as SnapshotVecDelegate>::Value)

Source§

fn len(&self) -> usize

Source§

fn reserve(&mut self, size: usize)

Source§

impl<D> VecLike<D> for Vec<<D as SnapshotVecDelegate>::Value>

Source§

fn push(&mut self, item: <D as SnapshotVecDelegate>::Value)

Source§

fn len(&self) -> usize

Source§

fn reserve(&mut self, size: usize)

Implementors§