pub struct ModalEdge {
pub from: NodeId,
pub to: NodeId,
pub cost: f64,
pub modes: AllowedModes,
}Expand description
A directed, mode-tagged edge.
Fields§
§from: NodeIdSource node.
to: NodeIdDestination node.
cost: f64Traversal cost (typically seconds of travel time).
modes: AllowedModesWhich modes are allowed on this edge.
Trait Implementations§
impl Copy for ModalEdge
impl StructuralPartialEq for ModalEdge
Auto Trait Implementations§
impl Freeze for ModalEdge
impl RefUnwindSafe for ModalEdge
impl Send for ModalEdge
impl Sync for ModalEdge
impl Unpin for ModalEdge
impl UnsafeUnpin for ModalEdge
impl UnwindSafe for ModalEdge
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