VecLike in rustc_data_structures::snapshot_vec - Rust
Description: API documentation for the Rust `VecLike` trait in crate `rustc_data_structures`.

Skip to main content

## VecLike

# Trait 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§