#[repr(C)]pub struct NodeMiniHeader {
pub node_count: u32,
pub layout: u8,
pub reserved_u8: u8,
pub reserved_u16: u16,
pub reserved_u64: u64,
}Expand description
The 16-byte NODE-section mini-header. repr(C), naturally aligned, no
padding.
offset size field
0 4 node_count:u32
4 1 layout:u8 (0=AoS, 1=SoA)
5 1 reserved_u8 (must be zero)
6 2 reserved_u16 (must be zero)
8 8 reserved_u64 (must be zero — future: q-mask, GSR back-pointer)Fields§
§node_count: u32§layout: u8§reserved_u8: u8§reserved_u16: u16§reserved_u64: u64Implementations§
Source§impl NodeMiniHeader
impl NodeMiniHeader
Sourcepub const fn payload_bytes(count: usize) -> usize
pub const fn payload_bytes(count: usize) -> usize
Total payload byte length for count nodes (mini-header + data).
Same for AoS and SoA (N×40 either way).
Trait Implementations§
Source§impl Clone for NodeMiniHeader
impl Clone for NodeMiniHeader
Source§fn clone(&self) -> NodeMiniHeader
fn clone(&self) -> NodeMiniHeader
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 NodeMiniHeader
impl Debug for NodeMiniHeader
Source§impl PartialEq for NodeMiniHeader
impl PartialEq for NodeMiniHeader
Source§fn eq(&self, other: &NodeMiniHeader) -> bool
fn eq(&self, other: &NodeMiniHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NodeMiniHeader
impl Eq for NodeMiniHeader
impl Pod for NodeMiniHeader
impl StructuralPartialEq for NodeMiniHeader
Auto Trait Implementations§
impl Freeze for NodeMiniHeader
impl RefUnwindSafe for NodeMiniHeader
impl Send for NodeMiniHeader
impl Sync for NodeMiniHeader
impl Unpin for NodeMiniHeader
impl UnsafeUnpin for NodeMiniHeader
impl UnwindSafe for NodeMiniHeader
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.
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<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<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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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