pub struct FragmentKey {
pub component_id: ComponentId,
pub fragment_id: FragmentId,
}Expand description
Globally unique fragment identity: component identity plus local id.
Fields§
§component_id: ComponentIdThe declaring component.
fragment_id: FragmentIdThe component-local fragment id.
Implementations§
Source§impl FragmentKey
impl FragmentKey
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
Canonical ordering bytes: the 32 fixed-width component identity bytes,
then the fragment id’s UTF-8 bytes. The fixed component width makes
the concatenation injective (the crate::action::ActionKey
precedent, F-6a R2).
Trait Implementations§
Source§impl Clone for FragmentKey
impl Clone for FragmentKey
Source§fn clone(&self) -> FragmentKey
fn clone(&self) -> FragmentKey
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 FragmentKey
impl Debug for FragmentKey
Source§impl<'de> Deserialize<'de> for FragmentKey
impl<'de> Deserialize<'de> for FragmentKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FragmentKey
Source§impl Hash for FragmentKey
impl Hash for FragmentKey
Source§impl Ord for FragmentKey
impl Ord for FragmentKey
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 FragmentKey
impl PartialEq for FragmentKey
Source§impl PartialOrd for FragmentKey
impl PartialOrd for FragmentKey
Source§impl Serialize for FragmentKey
impl Serialize for FragmentKey
impl StructuralPartialEq for FragmentKey
Auto Trait Implementations§
impl Freeze for FragmentKey
impl RefUnwindSafe for FragmentKey
impl Send for FragmentKey
impl Sync for FragmentKey
impl Unpin for FragmentKey
impl UnsafeUnpin for FragmentKey
impl UnwindSafe for FragmentKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.