pub struct RevisionId(/* private fields */);Expand description
Stable identity of one durable production revision.
Implementations§
Source§impl RevisionId
impl RevisionId
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Creates an identity from its stable 16-byte representation.
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Returns the stable 16-byte representation.
Trait Implementations§
Source§impl Clone for RevisionId
impl Clone for RevisionId
Source§fn clone(&self) -> RevisionId
fn clone(&self) -> RevisionId
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 RevisionId
Source§impl Debug for RevisionId
impl Debug for RevisionId
Source§impl Default for RevisionId
impl Default for RevisionId
Source§impl Display for RevisionId
impl Display for RevisionId
impl Eq for RevisionId
Source§impl FromStr for RevisionId
impl FromStr for RevisionId
Source§impl Hash for RevisionId
impl Hash for RevisionId
Source§impl Ord for RevisionId
impl Ord for RevisionId
Source§fn cmp(&self, other: &RevisionId) -> Ordering
fn cmp(&self, other: &RevisionId) -> 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
Source§impl PartialEq for RevisionId
impl PartialEq for RevisionId
Source§fn eq(&self, other: &RevisionId) -> bool
fn eq(&self, other: &RevisionId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RevisionId
impl PartialOrd for RevisionId
impl StructuralPartialEq for RevisionId
Auto Trait Implementations§
impl Freeze for RevisionId
impl RefUnwindSafe for RevisionId
impl Send for RevisionId
impl Sync for RevisionId
impl Unpin for RevisionId
impl UnsafeUnpin for RevisionId
impl UnwindSafe for RevisionId
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