pub struct LpgStoreSection { /* private fields */ }Expand description
LPG store section for the .grafeo container.
Wraps an Arc<LpgStore> and implements the Section trait for
serialization/deserialization of LPG graph data using the block-based
format (v2).
Implementations§
Trait Implementations§
Source§impl Section for LpgStoreSection
impl Section for LpgStoreSection
Source§fn section_type(&self) -> SectionType
fn section_type(&self) -> SectionType
The section type identifier.
Source§fn deserialize(&mut self, data: &[u8]) -> Result<()>
fn deserialize(&mut self, data: &[u8]) -> Result<()>
Populate section contents from bytes. Read more
Source§fn mark_clean(&self)
fn mark_clean(&self)
Mark the section as clean after a successful flush.
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Estimated memory usage of this section in bytes.
Auto Trait Implementations§
impl !Freeze for LpgStoreSection
impl !RefUnwindSafe for LpgStoreSection
impl Send for LpgStoreSection
impl Sync for LpgStoreSection
impl Unpin for LpgStoreSection
impl UnsafeUnpin for LpgStoreSection
impl !UnwindSafe for LpgStoreSection
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> 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