[−][src]Struct toposort_scc::ArenaGraphBuilder
A builder object that allows to easily add edges to a graph
Implementations
impl<'a, '_, T, A: ArenaBehavior> ArenaGraphBuilder<'_, 'a, T, A>
[src]
pub fn as_graph(&self) -> &ArenaGraph<'a, T, A>
[src]
Returns a reference to the stored graph
pub fn as_mut_graph(&mut self) -> &mut ArenaGraph<'a, T, A>
[src]
Returns a reference to the stored graph
pub fn index(&self) -> A::Id
[src]
Returns the stored id
pub fn add_out_edge(&mut self, index: A::Id)
[src]
Add an edge from the stored index to the passed id
This method does not check for duplicate edges.
pub fn add_in_edge(&mut self, index: A::Id)
[src]
Add an edge from the passed index to the stored id
This method does not check for duplicate edges.
Trait Implementations
impl<'g, 'a, T: Debug, A: Debug + ArenaBehavior> Debug for ArenaGraphBuilder<'g, 'a, T, A> where
A::Id: Debug,
[src]
A::Id: Debug,
Auto Trait Implementations
impl<'g, 'a, T, A> RefUnwindSafe for ArenaGraphBuilder<'g, 'a, T, A> where
T: RefUnwindSafe,
<A as ArenaBehavior>::Id: RefUnwindSafe,
T: RefUnwindSafe,
<A as ArenaBehavior>::Id: RefUnwindSafe,
impl<'g, 'a, T, A> Send for ArenaGraphBuilder<'g, 'a, T, A> where
T: Sync,
<A as ArenaBehavior>::Id: Send,
T: Sync,
<A as ArenaBehavior>::Id: Send,
impl<'g, 'a, T, A> Sync for ArenaGraphBuilder<'g, 'a, T, A> where
T: Sync,
<A as ArenaBehavior>::Id: Sync,
T: Sync,
<A as ArenaBehavior>::Id: Sync,
impl<'g, 'a, T, A> Unpin for ArenaGraphBuilder<'g, 'a, T, A> where
<A as ArenaBehavior>::Id: Unpin,
'a: 'g,
<A as ArenaBehavior>::Id: Unpin,
'a: 'g,
impl<'g, 'a, T, A> !UnwindSafe for ArenaGraphBuilder<'g, 'a, T, A>
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>,