pub struct HistoryEntryId(pub [u8; 16]);Expand description
One entry of a history as people read it. Opaque: only ever compared for equality (revert/restore callbacks pass it back to the caller). The caller picks the byte layout — UUID-v4 today, a content hash later.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
Source§impl Clone for HistoryEntryId
impl Clone for HistoryEntryId
Source§fn clone(&self) -> HistoryEntryId
fn clone(&self) -> HistoryEntryId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HistoryEntryId
Source§impl Debug for HistoryEntryId
impl Debug for HistoryEntryId
impl Eq for HistoryEntryId
Source§impl Hash for HistoryEntryId
impl Hash for HistoryEntryId
Source§impl PartialEq for HistoryEntryId
impl PartialEq for HistoryEntryId
impl StructuralPartialEq for HistoryEntryId
Auto Trait Implementations§
impl Forget for HistoryEntryId
impl Freeze for HistoryEntryId
impl Move for HistoryEntryId
impl RefUnwindSafe for HistoryEntryId
impl Send for HistoryEntryId
impl Sync for HistoryEntryId
impl Unpin for HistoryEntryId
impl UnsafeUnpin for HistoryEntryId
impl UnwindSafe for HistoryEntryId
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