pub enum PersonMode {
Walk,
Bicycle,
}Expand description
One of the person-only transport modes SUMO’s detectPersons attribute
lists, one per space-separated word (see E3Detector::detect_persons).
Not generated from the XSD like layer 1: detectPersons is plain
xsd:string there, SUMO doesn’t constrain it to an enumeration at the
schema level. Hand-written instead, from SUMO’s own detectPersons
reference (https://sumo.dlr.de/docs/Simulation/Output/Persons.html#detectors_for_persons).
Variants§
Implementations§
Source§impl PersonMode
impl PersonMode
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The exact spelling std::str::FromStr::from_str reads back into
this variant.
Trait Implementations§
Source§impl AsRef<str> for PersonMode
So crate::sumo::join_ids_opt — already shared by every whitespace-
separated id-list attribute this crate writes — can format
E3Detector::detect_persons too.
impl AsRef<str> for PersonMode
So crate::sumo::join_ids_opt — already shared by every whitespace-
separated id-list attribute this crate writes — can format
E3Detector::detect_persons too.
Source§impl Clone for PersonMode
impl Clone for PersonMode
impl Copy for PersonMode
Source§impl Debug for PersonMode
impl Debug for PersonMode
Source§impl Display for PersonMode
impl Display for PersonMode
impl Eq for PersonMode
Source§impl FromStr for PersonMode
impl FromStr for PersonMode
Source§impl PartialEq for PersonMode
impl PartialEq for PersonMode
impl StructuralPartialEq for PersonMode
Auto Trait Implementations§
impl Freeze for PersonMode
impl RefUnwindSafe for PersonMode
impl Send for PersonMode
impl Sync for PersonMode
impl Unpin for PersonMode
impl UnsafeUnpin for PersonMode
impl UnwindSafe for PersonMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.