[][src]Enum futures_signals::signal_vec::VecDiff

pub enum VecDiff<A> {
    Replace {
        values: Vec<A>,
    },
    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

Fields of Replace

values: Vec<A>
InsertAt

Fields of InsertAt

index: usizevalue: A
UpdateAt

Fields of UpdateAt

index: usizevalue: A
RemoveAt

Fields of RemoveAt

index: usize
Move

Fields of Move

old_index: usizenew_index: usize
Push

Fields of Push

value: A
Pop

Fields of Pop

Clear

Fields of Clear

Implementations

impl<A> VecDiff<A>[src]

pub fn apply_to_vec(self, vec: &mut Vec<A>)[src]

Trait Implementations

impl<A: Clone> Clone for VecDiff<A>[src]

impl<A: Debug> Debug for VecDiff<A>[src]

impl<A: Eq> Eq for VecDiff<A>[src]

impl<A: PartialEq> PartialEq<VecDiff<A>> for VecDiff<A>[src]

impl<A> StructuralEq for VecDiff<A>[src]

impl<A> StructuralPartialEq for VecDiff<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for VecDiff<A> where
    A: RefUnwindSafe

impl<A> Send for VecDiff<A> where
    A: Send

impl<A> Sync for VecDiff<A> where
    A: Sync

impl<A> Unpin for VecDiff<A> where
    A: Unpin

impl<A> UnwindSafe for VecDiff<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.