[][src]Enum map_model::pathfind::PathConstraints

pub enum PathConstraints {
    Pedestrian,
    Car,
    Bike,
    Bus,
    Train,
}

Who's asking for a path?

Variants

Pedestrian
Car
Bike
Bus
Train

Implementations

impl PathConstraints[src]

pub fn all() -> Vec<PathConstraints>[src]

pub fn from_lt(lt: LaneType) -> PathConstraints[src]

Not bijective, but this is the best guess of user intent

pub fn can_use(self, l: &Lane, map: &Map) -> bool[src]

pub(crate) fn filter_lanes(self, choices: Vec<LaneID>, map: &Map) -> Vec<LaneID>[src]

Strict for bikes. If there are bike lanes, not allowed to use other lanes.

Trait Implementations

impl<O: Into<EnumSet<PathConstraints>>> BitAnd<O> for PathConstraints[src]

type Output = EnumSet<PathConstraints>

The resulting type after applying the & operator.

impl<O: Into<EnumSet<PathConstraints>>> BitOr<O> for PathConstraints[src]

type Output = EnumSet<PathConstraints>

The resulting type after applying the | operator.

impl<O: Into<EnumSet<PathConstraints>>> BitXor<O> for PathConstraints[src]

type Output = EnumSet<PathConstraints>

The resulting type after applying the ^ operator.

impl Clone for PathConstraints[src]

impl Copy for PathConstraints[src]

impl Debug for PathConstraints[src]

impl<'de> Deserialize<'de> for PathConstraints[src]

impl EnumSetType for PathConstraints[src]

impl EnumSetTypePrivate for PathConstraints[src]

type Repr = u8

The underlying type used to store the bitset.

impl Eq for PathConstraints[src]

impl Not for PathConstraints[src]

type Output = EnumSet<PathConstraints>

The resulting type after applying the ! operator.

impl Ord for PathConstraints[src]

impl PartialEq<EnumSet<PathConstraints>> for PathConstraints[src]

impl PartialEq<PathConstraints> for PathConstraints[src]

impl PartialOrd<PathConstraints> for PathConstraints[src]

impl Serialize for PathConstraints[src]

impl<O: Into<EnumSet<PathConstraints>>> Sub<O> for PathConstraints[src]

type Output = EnumSet<PathConstraints>

The resulting type after applying the - operator.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,