[−][src]Enum map_model::pathfind::PathConstraints
Who's asking for a path?
Variants
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.
fn bitand(self, other: O) -> Self::Output
[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]
type Output = EnumSet<PathConstraints>
The resulting type after applying the ^
operator.
fn bitxor(self, other: O) -> Self::Output
[src]
impl Clone for PathConstraints
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PathConstraints
[src]
impl Debug 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 EnumSetType 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 Eq 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]
fn cmp(&self, other: &PathConstraints) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EnumSet<PathConstraints>> for PathConstraints
[src]
fn eq(&self, other: &EnumSet<PathConstraints>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<PathConstraints> for PathConstraints
[src]
impl PartialOrd<PathConstraints> for PathConstraints
[src]
fn partial_cmp(&self, other: &PathConstraints) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for PathConstraints
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,