pub struct Ticket {
pub depart: City,
pub arrive: City,
pub value: u8,
}Expand description
The struct for representing a game ticket which includes the departure city, the arrival city and the value of the ticket when it is satisfied. This struct is used for both regular tickets and the six big tickets.
Fields§
§depart: CityThe departing city of the ticket
arrive: CityThe arriving city of the ticket
value: u8The value of the ticket that counts towards the total score for the game (provided that the ticket is served in a normal game)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnwindSafe for Ticket
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