pub struct Vehicle {
pub id: VehicleId,
pub capacity: u32,
}Expand description
A vehicle in the (assumed homogeneous) fleet.
Fields§
§id: VehicleId§capacity: u32Trait Implementations§
impl Eq for Vehicle
impl StructuralPartialEq for Vehicle
Auto Trait Implementations§
impl Freeze for Vehicle
impl RefUnwindSafe for Vehicle
impl Send for Vehicle
impl Sync for Vehicle
impl Unpin for Vehicle
impl UnsafeUnpin for Vehicle
impl UnwindSafe for Vehicle
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