pub struct LogosUuid(pub Uuid);Expand description
A 128-bit UUID for the compiled tier (RFC 9562), mirroring logicaffeine_base::Uuid. A Copy newtype over
[u8; 16] — no allocation, byte-ordered comparison (so v6/v7 sort by time), canonical text form.
Tuple Fields§
§0: UuidImplementations§
Source§impl LogosUuid
impl LogosUuid
Sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parse from canonical/simple/braced/urn text. Panics on a malformed id (the front-end has already validated literal forms; a runtime parse of bad data is a clean program error).
Sourcepub fn version(&self) -> i64
pub fn version(&self) -> i64
The version nibble (0 for nil, 1–8 for the defined versions, 15 for max).
Sourcepub fn namespace_dns() -> Self
pub fn namespace_dns() -> Self
The well-known DNS / URL / OID / X.500 namespaces.
pub fn namespace_url() -> Self
pub fn namespace_oid() -> Self
pub fn namespace_x500() -> Self
Source§impl LogosUuid
impl LogosUuid
Sourcepub fn byte_seq(&self) -> LogosSeq<i64>
pub fn byte_seq(&self) -> LogosSeq<i64>
The UUID’s 16 bytes as a Seq of Int — the byte view the Logos-written version constructors
(uuid.lg) prepend as the namespace.
Sourcepub fn from_byte_seq(seq: &LogosSeq<i64>) -> LogosUuid
pub fn from_byte_seq(seq: &LogosSeq<i64>) -> LogosUuid
Build a UUID from the first 16 bytes of a Seq of Int (the compiled mirror of the
uuid_from_bytes builtin). Panics on fewer than 16 bytes — the front-end feeds a digest.
Trait Implementations§
Source§impl Ord for LogosUuid
impl Ord for LogosUuid
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for LogosUuid
impl PartialOrd for LogosUuid
impl Copy for LogosUuid
impl Eq for LogosUuid
impl StructuralPartialEq for LogosUuid
Auto Trait Implementations§
impl Freeze for LogosUuid
impl RefUnwindSafe for LogosUuid
impl Send for LogosUuid
impl Sync for LogosUuid
impl Unpin for LogosUuid
impl UnsafeUnpin for LogosUuid
impl UnwindSafe for LogosUuid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.