Enum pinwheel::signal_vec::VecDiff[][src]

pub enum VecDiff<A> {
    Replace {
        values: Vec<A, Global>,
    },
    InsertAt {
        index: usize,
        value: A,
    },
    UpdateAt {
        index: usize,
        value: A,
    },
    RemoveAt {
        index: usize,
    },
    Move {
        old_index: usize,
        new_index: usize,
    },
    Push {
        value: A,
    },
    Pop {},
    Clear {},
}

Variants

Replace
Show fields

Fields of Replace

values: Vec<A, Global>
InsertAt
Show fields

Fields of InsertAt

index: usizevalue: A
UpdateAt
Show fields

Fields of UpdateAt

index: usizevalue: A
RemoveAt
Show fields

Fields of RemoveAt

index: usize
Move
Show fields

Fields of Move

old_index: usizenew_index: usize
Push
Show fields

Fields of Push

value: A
Pop
Show fields

Fields of Pop

Clear
Show fields

Fields of Clear

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.