pub struct Network {
pub location: Location,
pub edges: Vec<Edge>,
pub junctions: Vec<Junction>,
pub connections: Vec<Connection>,
pub roundabouts: Vec<Roundabout>,
pub traffic_light_programs: Vec<TrafficLightProgram>,
}Expand description
Complete model of a SUMO network (.net.xml), already converted to the
project’s own types and decoupled from the original XSD schema.
Default is an empty network with a default [Location], which is
useful for building test fixtures but is never what
crate::read_network returns: net_file.xsd requires <location>
(minOccurs="1"), so a parsed Network always carries the real one.
Fields§
§location: LocationAlways present: net_file.xsd declares <location> as
minOccurs="1", so a .net.xml without one fails to parse rather
than yielding a Network with no location.
edges: Vec<Edge>§junctions: Vec<Junction>§connections: Vec<Connection>§roundabouts: Vec<Roundabout>§traffic_light_programs: Vec<TrafficLightProgram>Trait Implementations§
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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