pub struct ElevatorConfigId(pub u32);Expand description
Config-time numeric identifier for an ElevatorConfig.
Unique within the config. Mapped to an
EntityId at construction time; resolve
via Simulation::elevator_entity.
Newtype mirrors StopId’s pattern so consumers can’t accidentally
pass an elevator id where a line/stop id was expected. RON
deserializers unwrap newtype structs by default, so existing config
files with bare id: 0 continue to parse without changes.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for ElevatorConfigId
impl Clone for ElevatorConfigId
Source§fn clone(&self) -> ElevatorConfigId
fn clone(&self) -> ElevatorConfigId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElevatorConfigId
impl Debug for ElevatorConfigId
Source§impl Default for ElevatorConfigId
impl Default for ElevatorConfigId
Source§fn default() -> ElevatorConfigId
fn default() -> ElevatorConfigId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElevatorConfigId
impl<'de> Deserialize<'de> for ElevatorConfigId
Source§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
Source§impl Display for ElevatorConfigId
impl Display for ElevatorConfigId
Source§impl Hash for ElevatorConfigId
impl Hash for ElevatorConfigId
Source§impl Ord for ElevatorConfigId
impl Ord for ElevatorConfigId
Source§fn cmp(&self, other: &ElevatorConfigId) -> Ordering
fn cmp(&self, other: &ElevatorConfigId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElevatorConfigId
impl PartialEq for ElevatorConfigId
Source§fn eq(&self, other: &ElevatorConfigId) -> bool
fn eq(&self, other: &ElevatorConfigId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ElevatorConfigId
impl PartialOrd for ElevatorConfigId
Source§impl Serialize for ElevatorConfigId
impl Serialize for ElevatorConfigId
impl Copy for ElevatorConfigId
impl Eq for ElevatorConfigId
impl StructuralPartialEq for ElevatorConfigId
Auto Trait Implementations§
impl Freeze for ElevatorConfigId
impl RefUnwindSafe for ElevatorConfigId
impl Send for ElevatorConfigId
impl Sync for ElevatorConfigId
impl Unpin for ElevatorConfigId
impl UnsafeUnpin for ElevatorConfigId
impl UnwindSafe for ElevatorConfigId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.