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

Skip to main content

## SnapshotVecDelegate

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

Source

#### type Value

Source

#### type Undo

## 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".

## Implementations on Foreign Types§

Source§

### impl SnapshotVecDelegate for i32

Source§

#### type Value = i32

Source§

#### type Undo = ()

Source§

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

## Implementors§