# Trait rustc_data_structures::snapshot_vec::VecLike

source ·

    pub trait VecLike<D>: AsRef<[<D as SnapshotVecDelegate>::Value]> + AsMut<[<D as SnapshotVecDelegate>::Value]> + Rollback<UndoLog<D>>where
        D: SnapshotVecDelegate,{
        // 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>
where D: SnapshotVecDelegate,

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>
where D: SnapshotVecDelegate,

source§

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

source§

#### fn len(&self) -> usize

source§

#### fn reserve(&mut self, size: usize)

## Implementors§