Enum map_model::pathfind::PathConstraints [−][src]
pub enum PathConstraints {
Pedestrian,
Car,
Bike,
Bus,
Train,
}
Expand description
Who’s asking for a path?
Variants
Implementations
Not bijective, but this is the best guess of user intent
Can an agent use a lane? There are some subtle exceptions with using bus-only lanes for turns.
Trait Implementations
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
Converts an enum of this type into its bit position.
Converts a bit position into an enum value.
Serializes the EnumSet
. Read more
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<PathConstraints>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<PathConstraints>, D::Error>
Deserializes the EnumSet
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PathConstraints
impl Send for PathConstraints
impl Sync for PathConstraints
impl Unpin for PathConstraints
impl UnwindSafe for PathConstraints
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self