pub struct RootIdentity {
pub hash: u64,
pub utf8_len: u64,
pub kind: RootKind,
}Expand description
Scalar root label, with no borrowed text or runtime ownership.
Fields§
§hash: u64FNV-1a 64-bit hash of the UTF-8 name; not a collision-free identifier.
utf8_len: u64Number of UTF-8 bytes hashed.
kind: RootKindExpression, document, or unspecified origin.
Implementations§
Source§impl RootIdentity
impl RootIdentity
Trait Implementations§
Source§impl Clone for RootIdentity
impl Clone for RootIdentity
Source§fn clone(&self) -> RootIdentity
fn clone(&self) -> RootIdentity
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 RootIdentity
Source§impl Debug for RootIdentity
impl Debug for RootIdentity
impl Eq for RootIdentity
Source§impl PartialEq for RootIdentity
impl PartialEq for RootIdentity
Source§impl Serialize for RootIdentity
impl Serialize for RootIdentity
impl StructuralPartialEq for RootIdentity
Auto Trait Implementations§
impl Freeze for RootIdentity
impl RefUnwindSafe for RootIdentity
impl Send for RootIdentity
impl Sync for RootIdentity
impl Unpin for RootIdentity
impl UnsafeUnpin for RootIdentity
impl UnwindSafe for RootIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.