#[repr(C, align(16))]pub struct NQuin48(pub [u64; 6]);Expand description
Canonical 48-byte, 16-byte aligned Super-Quin representation ([u64; 6]).
Layout matches qualia_core_db::NQuin bit-for-bit:
[subject, predicate, object, context, metadata, parity], where
parity == subject ^ predicate ^ object ^ context ^ metadata.
Tuple Fields§
§0: [u64; 6]Implementations§
Source§impl NQuin48
impl NQuin48
Sourcepub const fn from_parts(
subject: u64,
predicate: u64,
object: u64,
context: u64,
metadata: u64,
) -> Self
pub const fn from_parts( subject: u64, predicate: u64, object: u64, context: u64, metadata: u64, ) -> Self
Constructs a parity-sealed NQuin48 from its five semantic fields.
Sourcepub const fn computed_parity(&self) -> u64
pub const fn computed_parity(&self) -> u64
Expected XOR parity (subject ^ predicate ^ object ^ context ^ metadata).
Sourcepub const fn verify_parity(&self) -> bool
pub const fn verify_parity(&self) -> bool
Returns true when parity == subject ^ predicate ^ object ^ context ^ metadata.
Source§impl NQuin48
impl NQuin48
Sourcepub const fn precondition(
subject_iri: &str,
object_iri: &str,
metadata: u64,
) -> Self
pub const fn precondition( subject_iri: &str, object_iri: &str, metadata: u64, ) -> Self
Constructs a 5-field parity-sealed precondition NQuin48 in the public ontology context.
Sourcepub const fn postcondition(
subject_iri: &str,
object_iri: &str,
metadata: u64,
) -> Self
pub const fn postcondition( subject_iri: &str, object_iri: &str, metadata: u64, ) -> Self
Constructs a 5-field parity-sealed postcondition NQuin48 in the public ontology context.
Trait Implementations§
impl Copy for NQuin48
impl Eq for NQuin48
impl StructuralPartialEq for NQuin48
Auto Trait Implementations§
impl Freeze for NQuin48
impl RefUnwindSafe for NQuin48
impl Send for NQuin48
impl Sync for NQuin48
impl Unpin for NQuin48
impl UnsafeUnpin for NQuin48
impl UnwindSafe for NQuin48
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