Struct fvm_ipld_amt::Change
source · pub struct Change<Old, New = Old> {
pub key: u64,
pub before: Option<Old>,
pub after: Option<New>,
}
Fields§
§key: u64
§before: Option<Old>
§after: Option<New>
Implementations§
source§impl<Old, New> Change<Old, New>
impl<Old, New> Change<Old, New>
pub fn change_type(&self) -> ChangeType
Trait Implementations§
source§impl<Old: PartialEq, New: PartialEq> PartialEq for Change<Old, New>
impl<Old: PartialEq, New: PartialEq> PartialEq for Change<Old, New>
impl<Old: Eq, New: Eq> Eq for Change<Old, New>
impl<Old, New> StructuralPartialEq for Change<Old, New>
Auto Trait Implementations§
impl<Old, New> Freeze for Change<Old, New>
impl<Old, New> RefUnwindSafe for Change<Old, New>where
Old: RefUnwindSafe,
New: RefUnwindSafe,
impl<Old, New> Send for Change<Old, New>
impl<Old, New> Sync for Change<Old, New>
impl<Old, New> Unpin for Change<Old, New>
impl<Old, New> UnwindSafe for Change<Old, New>where
Old: UnwindSafe,
New: UnwindSafe,
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> 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