pub struct RelationId(/* private fields */);Expand description
Typed identity for any relational record.
Implementations§
Source§impl RelationId
impl RelationId
Sourcepub fn of(value: &impl ToRelationDatum) -> Result<Self, Error>
pub fn of(value: &impl ToRelationDatum) -> Result<Self, Error>
Projects and hashes a record with the kernel algorithm.
Sourcepub const fn content_id(&self) -> &ContentId
pub const fn content_id(&self) -> &ContentId
Returns the kernel content id.
Trait Implementations§
Source§impl Clone for RelationId
impl Clone for RelationId
Source§fn clone(&self) -> RelationId
fn clone(&self) -> RelationId
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 RelationId
impl Debug for RelationId
impl Eq for RelationId
Source§impl Hash for RelationId
impl Hash for RelationId
Source§impl Ord for RelationId
impl Ord for RelationId
Source§fn cmp(&self, other: &RelationId) -> Ordering
fn cmp(&self, other: &RelationId) -> 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 RelationId
impl PartialEq for RelationId
Source§impl PartialOrd for RelationId
impl PartialOrd for RelationId
impl StructuralPartialEq for RelationId
Auto Trait Implementations§
impl Freeze for RelationId
impl RefUnwindSafe for RelationId
impl Send for RelationId
impl Sync for RelationId
impl Unpin for RelationId
impl UnsafeUnpin for RelationId
impl UnwindSafe for RelationId
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