[−][src]Struct toposort_scc::IndexGraphBuilder
A builder object that allows to easily add edges to a graph
Implementations
impl<'_> IndexGraphBuilder<'_>
[src]
pub fn graph(&mut self) -> &mut IndexGraph
[src]
Returns a reference to the stored graph
pub fn index(&self) -> usize
[src]
Returns the stored index
pub fn add_out_edge(&mut self, index: usize)
[src]
Add an edge from the stored index to the passed index
This method does not check for duplicate edges.
pub fn add_in_edge(&mut self, index: usize)
[src]
Add an edge from the passed index to the stored index
This method does not check for duplicate edges.
Trait Implementations
Auto Trait Implementations
impl<'g> RefUnwindSafe for IndexGraphBuilder<'g>
impl<'g> Send for IndexGraphBuilder<'g>
impl<'g> Sync for IndexGraphBuilder<'g>
impl<'g> Unpin for IndexGraphBuilder<'g>
impl<'g> !UnwindSafe for IndexGraphBuilder<'g>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,