Struct map_model::pathfind::node_map::NodeMap [−][src]
pub struct NodeMap<T: Copy + Ord + Debug + Serialize> { node_to_id: BTreeMap<T, NodeId>, id_to_node: Vec<T>, }
Expand description
A bidirectional mapping between fast_paths NodeId and some custom ID type.
Fields
node_to_id: BTreeMap<T, NodeId>
id_to_node: Vec<T>
Implementations
Call this after filling out the input graph, right before preparation.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for NodeMap<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for NodeMap<T> where
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self