rustc_data_structures::snapshot_vec

Trait SnapshotVecDelegate

source
pub trait SnapshotVecDelegate {
    type Value;
    type Undo;

    // Required method
    fn reverse(values: &mut Vec<Self::Value>, action: Self::Undo);
}

Required Associated Types§

Required Methods§

source

fn reverse(values: &mut Vec<Self::Value>, action: Self::Undo)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl SnapshotVecDelegate for i32

source§

type Value = i32

source§

type Undo = ()

source§

fn reverse(_: &mut Vec<i32>, _: ())

Implementors§