Struct simmons_rooms::RoomNumber
[−]
[src]
pub struct RoomNumber<'a> { pub integer: u32, pub suffix: Option<&'a str>, }
A room number.
Fields
integer: u32
The integral part of the room number. For example, "741" or "232".
suffix: Option<&'a str>
The suffix of the room number. For example, "A" or "B".
Trait Implementations
impl<'a> Clone for RoomNumber<'a>
[src]
fn clone(&self) -> RoomNumber<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Debug for RoomNumber<'a>
[src]
impl<'a> Eq for RoomNumber<'a>
[src]
impl<'a> PartialEq for RoomNumber<'a>
[src]
fn eq(&self, __arg_0: &RoomNumber<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RoomNumber<'a>) -> bool
This method tests for !=
.
impl<'a> Hash for RoomNumber<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more