pub struct ConcurrentDependencyGraph { /* private fields */ }Expand description
Thread-safe concurrent version of DependencyGraph
Implementations§
Source§impl ConcurrentDependencyGraph
impl ConcurrentDependencyGraph
Sourcepub fn out_degree(&self, node_id: &NodeId) -> usize
pub fn out_degree(&self, node_id: &NodeId) -> usize
Get out-degree concurrently
Sourcepub fn into_sequential(self) -> DependencyGraph
pub fn into_sequential(self) -> DependencyGraph
Convert back to single-threaded graph
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ConcurrentDependencyGraph
impl !RefUnwindSafe for ConcurrentDependencyGraph
impl Send for ConcurrentDependencyGraph
impl Sync for ConcurrentDependencyGraph
impl Unpin for ConcurrentDependencyGraph
impl UnwindSafe for ConcurrentDependencyGraph
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