pub struct LegacyMigrationReference { /* private fields */ }Expand description
One legacy frontier migration named by the canonical bridge.
Implementations§
Source§impl LegacyMigrationReference
impl LegacyMigrationReference
Sourcepub fn new(
id: impl Into<LegacyMigrationId>,
checksum: LegacyMigrationChecksum,
) -> Self
pub fn new( id: impl Into<LegacyMigrationId>, checksum: LegacyMigrationChecksum, ) -> Self
Bind one legacy compound identity to its tagged checksum.
Sourcepub const fn id(&self) -> &LegacyMigrationId
pub const fn id(&self) -> &LegacyMigrationId
Return the legacy compound migration identity.
Sourcepub const fn checksum(&self) -> &LegacyMigrationChecksum
pub const fn checksum(&self) -> &LegacyMigrationChecksum
Return the tagged legacy checksum.
Trait Implementations§
Source§impl Clone for LegacyMigrationReference
impl Clone for LegacyMigrationReference
Source§fn clone(&self) -> LegacyMigrationReference
fn clone(&self) -> LegacyMigrationReference
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 moreSource§impl Debug for LegacyMigrationReference
impl Debug for LegacyMigrationReference
impl Eq for LegacyMigrationReference
Source§impl Hash for LegacyMigrationReference
impl Hash for LegacyMigrationReference
Source§impl Ord for LegacyMigrationReference
impl Ord for LegacyMigrationReference
Source§fn cmp(&self, other: &LegacyMigrationReference) -> Ordering
fn cmp(&self, other: &LegacyMigrationReference) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LegacyMigrationReference
impl PartialEq for LegacyMigrationReference
Source§impl PartialOrd for LegacyMigrationReference
impl PartialOrd for LegacyMigrationReference
impl StructuralPartialEq for LegacyMigrationReference
Auto Trait Implementations§
impl Freeze for LegacyMigrationReference
impl RefUnwindSafe for LegacyMigrationReference
impl Send for LegacyMigrationReference
impl Sync for LegacyMigrationReference
impl Unpin for LegacyMigrationReference
impl UnsafeUnpin for LegacyMigrationReference
impl UnwindSafe for LegacyMigrationReference
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