pub struct Mutations(/* private fields */);Expand description
A list of mutations memorized by a memorizing persister
Implementations§
Source§impl Mutations
impl Mutations
Sourcepub fn from_vec(mutations: Vec<(String, (u64, Vec<u8>))>) -> Self
pub fn from_vec(mutations: Vec<(String, (u64, Vec<u8>))>) -> Self
Create a new list of mutations from a vector
Sourcepub fn add(&mut self, key: String, version: u64, value: Vec<u8>)
pub fn add(&mut self, key: String, version: u64, value: Vec<u8>)
Add a new mutation to the list
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mutations
impl RefUnwindSafe for Mutations
impl Send for Mutations
impl Sync for Mutations
impl Unpin for Mutations
impl UnwindSafe for Mutations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more