pub struct BfsWorkspace { /* private fields */ }Expand description
Reusable temporary storage for Graph::connected_with_workspace.
Each caller or worker owns its workspace. Separate workspaces permit shared graph queries without internal locks. A workspace can be reused across graph growth, mutations and different graphs. It never caches connectivity answers. Marks use four bytes per registered vertex. Storage retains O(N + R) capacity for the largest registered node count N and largest visited set R so far; drop the workspace to release that memory.
Trait Implementations§
Source§impl Debug for BfsWorkspace
impl Debug for BfsWorkspace
Auto Trait Implementations§
impl Forget for BfsWorkspace
impl Freeze for BfsWorkspace
impl Move for BfsWorkspace
impl RefUnwindSafe for BfsWorkspace
impl Send for BfsWorkspacewhere
RawVecInner: Send,
impl Sync for BfsWorkspacewhere
RawVecInner: Sync,
impl Unpin for BfsWorkspace
impl UnsafeUnpin for BfsWorkspacewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for BfsWorkspacewhere
RawVecInner: UnwindSafe,
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