pub struct OptimizedGraphBuilder { /* private fields */ }Expand description
Memory-optimized graph builder
Implementations§
Source§impl OptimizedGraphBuilder
impl OptimizedGraphBuilder
Sourcepub fn with_estimated_edges_per_node(self, edges_pernode: usize) -> Self
pub fn with_estimated_edges_per_node(self, edges_pernode: usize) -> Self
Set expected number of edges per node for better memory allocation
Sourcepub fn reserve_nodes(self, capacity: usize) -> Self
pub fn reserve_nodes(self, capacity: usize) -> Self
Reserve capacity for nodes
Sourcepub fn reserve_edges(self, capacity: usize) -> Self
pub fn reserve_edges(self, capacity: usize) -> Self
Reserve capacity for edges
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptimizedGraphBuilder
impl RefUnwindSafe for OptimizedGraphBuilder
impl Send for OptimizedGraphBuilder
impl Sync for OptimizedGraphBuilder
impl Unpin for OptimizedGraphBuilder
impl UnwindSafe for OptimizedGraphBuilder
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