pub struct TurnPenalty {
pub via_node: NodeId,
pub from_edge: EdgeId,
pub to_edge: EdgeId,
pub penalty: f64,
}Expand description
Turn penalty specification between two edges meeting at a node
Fields§
§via_node: NodeIdThe node where the turn occurs
from_edge: EdgeIdThe incoming edge
to_edge: EdgeIdThe outgoing edge
penalty: f64Additional cost for making this turn
Trait Implementations§
Source§impl Clone for TurnPenalty
impl Clone for TurnPenalty
Source§fn clone(&self) -> TurnPenalty
fn clone(&self) -> TurnPenalty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TurnPenalty
impl RefUnwindSafe for TurnPenalty
impl Send for TurnPenalty
impl Sync for TurnPenalty
impl Unpin for TurnPenalty
impl UnsafeUnpin for TurnPenalty
impl UnwindSafe for TurnPenalty
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