Enum futures_signals::signal_vec::VecDiff
source · [−]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
values: Vec<A>
InsertAt
UpdateAt
RemoveAt
Fields
index: usize
Move
Push
Pop
Fields
Clear
Fields
Implementations
sourceimpl<A> VecDiff<A>
impl<A> VecDiff<A>
pub fn apply_to_vec(self, vec: &mut Vec<A>)
Trait Implementations
impl<A: Eq> Eq for VecDiff<A>
impl<A> StructuralEq for VecDiff<A>
impl<A> StructuralPartialEq for VecDiff<A>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more