pub struct TrafficLightId(/* private fields */);Expand description
Unique ID of a TrafficLight.
Trait Implementations§
Source§impl Clone for TrafficLightId
impl Clone for TrafficLightId
Source§fn clone(&self) -> TrafficLightId
fn clone(&self) -> TrafficLightId
Returns a duplicate of the value. Read more
1.0.0 · 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 TrafficLightId
impl Debug for TrafficLightId
Source§impl Default for TrafficLightId
impl Default for TrafficLightId
Source§fn default() -> TrafficLightId
fn default() -> TrafficLightId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrafficLightId
impl<'de> Deserialize<'de> for TrafficLightId
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 From<KeyData> for TrafficLightId
impl From<KeyData> for TrafficLightId
Source§impl Hash for TrafficLightId
impl Hash for TrafficLightId
Source§impl Key for TrafficLightId
impl Key for TrafficLightId
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!, which calls this
method). Read moreSource§impl Ord for TrafficLightId
impl Ord for TrafficLightId
Source§fn cmp(&self, other: &TrafficLightId) -> Ordering
fn cmp(&self, other: &TrafficLightId) -> Ordering
1.21.0 · 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 TrafficLightId
impl PartialEq for TrafficLightId
Source§impl PartialOrd for TrafficLightId
impl PartialOrd for TrafficLightId
Source§impl Serialize for TrafficLightId
impl Serialize for TrafficLightId
impl Copy for TrafficLightId
impl Eq for TrafficLightId
impl StructuralPartialEq for TrafficLightId
Auto Trait Implementations§
impl Freeze for TrafficLightId
impl RefUnwindSafe for TrafficLightId
impl Send for TrafficLightId
impl Sync for TrafficLightId
impl Unpin for TrafficLightId
impl UnwindSafe for TrafficLightId
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more