pub enum LaneCoverage {
SingleLane(LaneRef),
LaneChain(Vec<LaneRef>),
}Expand description
What an E2Detector is stretched over: SUMO’s mutually exclusive
lane and lanes attributes, as one value that can only hold one of
them. Setting both is an error SUMO rejects, and this makes it
unrepresentable rather than something each consumer has to check.
Variants§
SingleLane(LaneRef)
A stretch of one lane (lane).
LaneChain(Vec<LaneRef>)
A chain of consecutive lanes (lanes).
Trait Implementations§
Source§impl Clone for LaneCoverage
impl Clone for LaneCoverage
Source§fn clone(&self) -> LaneCoverage
fn clone(&self) -> LaneCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaneCoverage
impl Debug for LaneCoverage
Source§impl PartialEq for LaneCoverage
impl PartialEq for LaneCoverage
impl StructuralPartialEq for LaneCoverage
Auto Trait Implementations§
impl Freeze for LaneCoverage
impl RefUnwindSafe for LaneCoverage
impl Send for LaneCoverage
impl Sync for LaneCoverage
impl Unpin for LaneCoverage
impl UnsafeUnpin for LaneCoverage
impl UnwindSafe for LaneCoverage
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