Enum map_model::OffstreetParking
source · pub enum OffstreetParking {
PublicGarage(String, usize),
Private(usize, bool),
}
Expand description
Represent no parking as Private(0, false).
Variants§
PublicGarage(String, usize)
(Name, spots)
Private(usize, bool)
(Spots, explicitly tagged as a garage)
Trait Implementations§
source§impl Clone for OffstreetParking
impl Clone for OffstreetParking
source§fn clone(&self) -> OffstreetParking
fn clone(&self) -> OffstreetParking
Returns a copy 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 OffstreetParking
impl Debug for OffstreetParking
source§impl<'de> Deserialize<'de> for OffstreetParking
impl<'de> Deserialize<'de> for OffstreetParking
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 PartialEq for OffstreetParking
impl PartialEq for OffstreetParking
source§fn eq(&self, other: &OffstreetParking) -> bool
fn eq(&self, other: &OffstreetParking) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OffstreetParking
impl Serialize for OffstreetParking
impl StructuralPartialEq for OffstreetParking
Auto Trait Implementations§
impl Freeze for OffstreetParking
impl RefUnwindSafe for OffstreetParking
impl Send for OffstreetParking
impl Sync for OffstreetParking
impl Unpin for OffstreetParking
impl UnwindSafe for OffstreetParking
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