pub struct ContractLineage(/* private fields */);Expand description
A bounded exact contract lineage name.
The text is held behind an Arc because this identifier is copied along
every command record, index entry and audit target on the single writer
thread; a String field made each of those copies a heap allocation.
Validation, ordering, hashing and display use the exact same str. The
closed owner retires its shared backing before releasing its charge.
Implementations§
Trait Implementations§
Source§impl Clone for ContractLineage
impl Clone for ContractLineage
Source§impl Debug for ContractLineage
impl Debug for ContractLineage
Source§impl Display for ContractLineage
impl Display for ContractLineage
impl Eq for ContractLineage
Source§impl Hash for ContractLineage
impl Hash for ContractLineage
Source§impl Ord for ContractLineage
impl Ord for ContractLineage
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 ContractLineage
impl PartialEq for ContractLineage
Source§impl PartialOrd for ContractLineage
impl PartialOrd for ContractLineage
impl StructuralPartialEq for ContractLineage
Auto Trait Implementations§
impl Freeze for ContractLineage
impl RefUnwindSafe for ContractLineage
impl Send for ContractLineage
impl Sync for ContractLineage
impl Unpin for ContractLineage
impl UnsafeUnpin for ContractLineage
impl UnwindSafe for ContractLineage
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