Enum map_model::pathfind::PathConstraints [−][src]
pub enum PathConstraints { Pedestrian, Car, Bike, Bus, Train, }
Who’s asking for a path?
Variants
Implementations
impl PathConstraints
[src]
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, lane: &Lane, map: &Map) -> bool
[src]
Can an agent use a lane? There are some subtle exceptions with using bus-only lanes for turns.
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]
impl<O: Into<EnumSet<PathConstraints>>> BitAnd<O> for PathConstraints
[src]type Output = EnumSet<PathConstraints>
The resulting type after applying the &
operator.
fn bitand(self, other: O) -> Self::Output
[src]
impl<O: Into<EnumSet<PathConstraints>>> BitOr<O> for PathConstraints
[src]
impl<O: Into<EnumSet<PathConstraints>>> BitOr<O> for PathConstraints
[src]type Output = EnumSet<PathConstraints>
The resulting type after applying the |
operator.
fn bitor(self, other: O) -> Self::Output
[src]
impl<O: Into<EnumSet<PathConstraints>>> BitXor<O> for PathConstraints
[src]
impl<O: Into<EnumSet<PathConstraints>>> BitXor<O> for PathConstraints
[src]type Output = EnumSet<PathConstraints>
The resulting type after applying the ^
operator.
fn bitxor(self, other: O) -> Self::Output
[src]
impl Clone for PathConstraints
[src]
impl Clone for PathConstraints
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for PathConstraints
[src]
impl<'de> Deserialize<'de> for PathConstraints
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl EnumSetTypePrivate for PathConstraints
[src]
impl EnumSetTypePrivate for PathConstraints
[src]type Repr = u8
The underlying type used to store the bitset.
const ALL_BITS: Self::Repr
[src]
fn enum_into_u32(self) -> u32
[src]
unsafe fn enum_from_u32(val: u32) -> Self
[src]
fn serialize<S: Serializer>(
set: EnumSet<PathConstraints>,
ser: S
) -> Result<S::Ok, S::Error>
[src]
set: EnumSet<PathConstraints>,
ser: S
) -> Result<S::Ok, S::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<PathConstraints>, D::Error>
[src]
de: D
) -> Result<EnumSet<PathConstraints>, D::Error>
impl Not for PathConstraints
[src]
impl Not for PathConstraints
[src]type Output = EnumSet<PathConstraints>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl Ord for PathConstraints
[src]
impl Ord for PathConstraints
[src]impl PartialEq<EnumSet<PathConstraints>> for PathConstraints
[src]
impl PartialEq<EnumSet<PathConstraints>> for PathConstraints
[src]impl PartialEq<PathConstraints> for PathConstraints
[src]
impl PartialEq<PathConstraints> for PathConstraints
[src]impl PartialOrd<PathConstraints> for PathConstraints
[src]
impl PartialOrd<PathConstraints> for PathConstraints
[src]fn partial_cmp(&self, other: &PathConstraints) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for PathConstraints
[src]
impl Serialize for PathConstraints
[src]impl<O: Into<EnumSet<PathConstraints>>> Sub<O> for PathConstraints
[src]
impl<O: Into<EnumSet<PathConstraints>>> Sub<O> for PathConstraints
[src]type Output = EnumSet<PathConstraints>
The resulting type after applying the -
operator.
fn sub(self, other: O) -> Self::Output
[src]
impl Copy for PathConstraints
[src]
impl EnumSetType for PathConstraints
[src]
impl Eq for PathConstraints
[src]
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,