Struct NQuinWire
#[repr(C, align(16))]pub struct NQuinWire {
pub subject: u64,
pub predicate: u64,
pub object: u64,
pub context: u64,
pub metadata: u64,
pub parity: u64,
}Expand description
48-byte Super-Quin wire layout. Six 64-bit integer fields aligned to 16 bytes.
Fields§
§subject: u64§predicate: u64§object: u64§context: u64§metadata: u64§parity: u64Implementations§
§impl NQuinWire
impl NQuinWire
pub const fn new( subject: u64, predicate: u64, object: u64, context: u64, metadata: u64, parity: u64, ) -> NQuinWire
pub const fn from_parts(
subject: u64,
predicate: u64,
object: u64,
context: u64,
metadata: u64,
) -> NQuinWire
pub const fn from_parts( subject: u64, predicate: u64, object: u64, context: u64, metadata: u64, ) -> NQuinWire
Construct a 48-byte NQuinWire with canonical 5-field XOR parity.
pub const fn compute_parity(&self) -> u64
pub const fn compute_parity(&self) -> u64
Calculate canonical 5-field parity check (subject ^ predicate ^ object ^ context ^ metadata).
pub const fn is_parity_valid(&self) -> bool
Trait Implementations§
impl Copy for NQuinWire
impl Eq for NQuinWire
impl Pod for NQuinWire
impl StructuralPartialEq for NQuinWire
Auto Trait Implementations§
impl Freeze for NQuinWire
impl RefUnwindSafe for NQuinWire
impl Send for NQuinWire
impl Sync for NQuinWire
impl Unpin for NQuinWire
impl UnsafeUnpin for NQuinWire
impl UnwindSafe for NQuinWire
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more