pub struct CsrHeader { /* private fields */ }Expand description
CSR header: offset and length columns for each bound node.
Each entry stores a CsrList indicating where adjacency data starts and how long it is.
Implementations§
Source§impl CsrHeader
impl CsrHeader
pub fn new(num_nodes: u64) -> Self
pub fn num_nodes(&self) -> u64
pub fn get_csr_list(&self, offset: u64) -> CsrList
pub fn set_csr_list(&mut self, offset: u64, list: CsrList)
Sourcepub fn total_length(&self) -> u64
pub fn total_length(&self) -> u64
Total number of relationship entries across all nodes.
pub fn offsets(&self) -> &ColumnChunkData
pub fn lengths(&self) -> &ColumnChunkData
Auto Trait Implementations§
impl Freeze for CsrHeader
impl RefUnwindSafe for CsrHeader
impl Send for CsrHeader
impl Sync for CsrHeader
impl Unpin for CsrHeader
impl UnsafeUnpin for CsrHeader
impl UnwindSafe for CsrHeader
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreCreates a shared type from an unshared type.