pub struct EncodedNodeBlocks { /* private fields */ }Expand description
Owned encoded graph region produced by the production writer.
Implementations§
Source§impl EncodedNodeBlocks
impl EncodedNodeBlocks
Sourcepub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
Returns the complete region bytes, including the fixed metadata trailer.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consumes the wrapper and returns the complete persisted region bytes.
Sourcepub fn block_offset(&self, node_id: u32) -> Result<u32, GraphNodeError>
pub fn block_offset(&self, node_id: u32) -> Result<u32, GraphNodeError>
Returns the byte offset of a present dense node id.
Trait Implementations§
Source§impl Clone for EncodedNodeBlocks
impl Clone for EncodedNodeBlocks
Source§impl Debug for EncodedNodeBlocks
impl Debug for EncodedNodeBlocks
impl Eq for EncodedNodeBlocks
Source§impl PartialEq for EncodedNodeBlocks
impl PartialEq for EncodedNodeBlocks
impl StructuralPartialEq for EncodedNodeBlocks
Auto Trait Implementations§
impl Freeze for EncodedNodeBlocks
impl RefUnwindSafe for EncodedNodeBlocks
impl Send for EncodedNodeBlocks
impl Sync for EncodedNodeBlocks
impl Unpin for EncodedNodeBlocks
impl UnsafeUnpin for EncodedNodeBlocks
impl UnwindSafe for EncodedNodeBlocks
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