[][src]Struct rs_graph::string::Data

pub struct Data<'a, G> where
    G: GraphType<'a>, 
{ pub graph: G, pub nodes: HashMap<char, G::Node>, pub weights: Vec<usize>, }

The data returned by from_ascii.

Fields

graph: G

The graph.

nodes: HashMap<char, G::Node>

Map from character to node for named nodes.

weights: Vec<usize>

The edge weights.

Auto Trait Implementations

impl<'a, G> RefUnwindSafe for Data<'a, G> where
    G: RefUnwindSafe,
    <G as GraphType<'a>>::Node: RefUnwindSafe

impl<'a, G> Send for Data<'a, G> where
    G: Send,
    <G as GraphType<'a>>::Node: Send

impl<'a, G> Sync for Data<'a, G> where
    G: Sync,
    <G as GraphType<'a>>::Node: Sync

impl<'a, G> Unpin for Data<'a, G> where
    G: Unpin,
    <G as GraphType<'a>>::Node: Unpin

impl<'a, G> UnwindSafe for Data<'a, G> where
    G: UnwindSafe,
    <G as GraphType<'a>>::Node: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.