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
sourceimpl Clone for OffstreetParking
impl Clone for OffstreetParking
sourcefn clone(&self) -> OffstreetParking
fn clone(&self) -> OffstreetParking
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OffstreetParking
impl Debug for OffstreetParking
sourceimpl<'de> Deserialize<'de> for OffstreetParking
impl<'de> Deserialize<'de> for OffstreetParking
sourcefn 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
sourceimpl PartialEq<OffstreetParking> for OffstreetParking
impl PartialEq<OffstreetParking> for OffstreetParking
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OffstreetParking) -> bool
fn ne(&self, other: &OffstreetParking) -> bool
This method tests for !=
.
sourceimpl Serialize for OffstreetParking
impl Serialize for OffstreetParking
impl StructuralPartialEq for OffstreetParking
Auto Trait Implementations
impl RefUnwindSafe for OffstreetParking
impl Send for OffstreetParking
impl Sync for OffstreetParking
impl Unpin for OffstreetParking
impl UnwindSafe for OffstreetParking
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more