pub struct GraphNodeBlock<'a> { /* private fields */ }Expand description
Borrowed fields from one validated fixed-stride node block.
Implementations§
Source§impl GraphNodeBlock<'_>
impl GraphNodeBlock<'_>
Sourcepub const fn factors(&self) -> Bit4Factors
pub const fn factors(&self) -> Bit4Factors
Returns the three persisted Bit4 factor fields.
Sourcepub const fn reserved_bytes(&self) -> [u8; 2]
pub const fn reserved_bytes(&self) -> [u8; 2]
Returns the two must-be-zero bytes after degree and flags.
Sourcepub fn neighbors_padded(&self) -> NeighborIds<'_> ⓘ
pub fn neighbors_padded(&self) -> NeighborIds<'_> ⓘ
Iterates all fixed slots, including u32::MAX unused sentinels.
Sourcepub const fn padding_bytes(&self) -> &[u8] ⓘ
pub const fn padding_bytes(&self) -> &[u8] ⓘ
Returns cache-line rounding bytes, all validated as zero.
Trait Implementations§
Source§impl<'a> Clone for GraphNodeBlock<'a>
impl<'a> Clone for GraphNodeBlock<'a>
impl<'a> Copy for GraphNodeBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphNodeBlock<'a>
impl<'a> RefUnwindSafe for GraphNodeBlock<'a>
impl<'a> Send for GraphNodeBlock<'a>
impl<'a> Sync for GraphNodeBlock<'a>
impl<'a> Unpin for GraphNodeBlock<'a>
impl<'a> UnsafeUnpin for GraphNodeBlock<'a>
impl<'a> UnwindSafe for GraphNodeBlock<'a>
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