pub struct ProductionId(/* private fields */);Expand description
Stable identity of a production.
Implementations§
Source§impl ProductionId
impl ProductionId
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 ProductionId
impl Clone for ProductionId
Source§fn clone(&self) -> ProductionId
fn clone(&self) -> ProductionId
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 ProductionId
Source§impl Debug for ProductionId
impl Debug for ProductionId
Source§impl Default for ProductionId
impl Default for ProductionId
Source§impl Display for ProductionId
impl Display for ProductionId
impl Eq for ProductionId
Source§impl FromStr for ProductionId
impl FromStr for ProductionId
Source§impl Hash for ProductionId
impl Hash for ProductionId
Source§impl Ord for ProductionId
impl Ord for ProductionId
Source§fn cmp(&self, other: &ProductionId) -> Ordering
fn cmp(&self, other: &ProductionId) -> 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 ProductionId
impl PartialEq for ProductionId
Source§fn eq(&self, other: &ProductionId) -> bool
fn eq(&self, other: &ProductionId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProductionId
impl PartialOrd for ProductionId
impl StructuralPartialEq for ProductionId
Auto Trait Implementations§
impl Freeze for ProductionId
impl RefUnwindSafe for ProductionId
impl Send for ProductionId
impl Sync for ProductionId
impl Unpin for ProductionId
impl UnsafeUnpin for ProductionId
impl UnwindSafe for ProductionId
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