pub enum GraphSourceVertexRequirement {
None,
Required,
}Expand description
Source-vertex contract for a graph algorithm.
Variants§
None
The algorithm does not accept a source vertex.
Required
The algorithm requires exactly one source vertex.
Implementations§
Source§impl GraphSourceVertexRequirement
impl GraphSourceVertexRequirement
Sourcepub const fn requires_source_vertex(self) -> bool
pub const fn requires_source_vertex(self) -> bool
Whether the algorithm requires a source vertex.
Trait Implementations§
Source§impl Clone for GraphSourceVertexRequirement
impl Clone for GraphSourceVertexRequirement
impl Copy for GraphSourceVertexRequirement
Source§impl Debug for GraphSourceVertexRequirement
impl Debug for GraphSourceVertexRequirement
impl Eq for GraphSourceVertexRequirement
Source§impl Hash for GraphSourceVertexRequirement
impl Hash for GraphSourceVertexRequirement
impl StructuralPartialEq for GraphSourceVertexRequirement
Auto Trait Implementations§
impl Freeze for GraphSourceVertexRequirement
impl RefUnwindSafe for GraphSourceVertexRequirement
impl Send for GraphSourceVertexRequirement
impl Sync for GraphSourceVertexRequirement
impl Unpin for GraphSourceVertexRequirement
impl UnsafeUnpin for GraphSourceVertexRequirement
impl UnwindSafe for GraphSourceVertexRequirement
Blanket Implementations§
impl<T> Allocation for T
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