pub struct Data<G> {
pub graph: G,
pub nodes: HashMap<char, usize>,
pub weights: Vec<usize>,
}
Expand description
The data returned by from_ascii
.
Fields§
§graph: G
The graph.
nodes: HashMap<char, usize>
Map from character to node for named node ids.
weights: Vec<usize>
The edge weights.
Auto Trait Implementations§
impl<G> RefUnwindSafe for Data<G>where G: RefUnwindSafe,
impl<G> Send for Data<G>where G: Send,
impl<G> Sync for Data<G>where G: Sync,
impl<G> Unpin for Data<G>where G: Unpin,
impl<G> UnwindSafe for Data<G>where G: 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