pub struct MemoryMappedGraph { /* private fields */ }Expand description
Memory-mapped graph storage for large graphs
Implementations§
Source§impl MemoryMappedGraph
impl MemoryMappedGraph
Sourcepub fn new<P: AsRef<Path>>(
file_path: P,
memory_threshold: usize,
) -> TorshResult<Self>
pub fn new<P: AsRef<Path>>( file_path: P, memory_threshold: usize, ) -> TorshResult<Self>
Create a new memory-mapped graph
Sourcepub fn save_graph(&mut self, graph: &FxGraph) -> TorshResult<()>
pub fn save_graph(&mut self, graph: &FxGraph) -> TorshResult<()>
Save a graph using memory-mapped storage
Sourcepub fn load_graph(&mut self) -> TorshResult<FxGraph>
pub fn load_graph(&mut self) -> TorshResult<FxGraph>
Load a graph from memory-mapped storage
Auto Trait Implementations§
impl Freeze for MemoryMappedGraph
impl RefUnwindSafe for MemoryMappedGraph
impl Send for MemoryMappedGraph
impl Sync for MemoryMappedGraph
impl Unpin for MemoryMappedGraph
impl UnsafeUnpin for MemoryMappedGraph
impl UnwindSafe for MemoryMappedGraph
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