pub struct RoadEdge {
pub start: NodeId,
pub end: NodeId,
pub road_type: RoadType,
pub active: bool,
}Expand description
Fields§
§start: NodeIdSource node index.
end: NodeIdDestination node index.
road_type: RoadTypeWhether this is a major (contour) or minor (gradient) road.
active: boolfalse after the edge has been split — superseded by two child edges.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoadEdge
impl<'de> Deserialize<'de> for RoadEdge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoadEdge
impl RefUnwindSafe for RoadEdge
impl Send for RoadEdge
impl Sync for RoadEdge
impl Unpin for RoadEdge
impl UnsafeUnpin for RoadEdge
impl UnwindSafe for RoadEdge
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