pub struct Driver {
pub costs: Costs,
pub dimens: Dimensions,
pub details: Vec<DriverDetail>,
}
Expand description
Represents a driver, person who drives Vehicle. Introduced to allow the following scenarios:
- reuse vehicle multiple times with different drivers
- solve best driver-vehicle match problem. NOTE: At the moment, it is not used.
Fields
costs: Costs
Specifies operating costs for driver.
dimens: Dimensions
Dimensions which contains extra work requirements.
details: Vec<DriverDetail>
Specifies driver details.
Auto Trait Implementations
impl !RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl !UnwindSafe for Driver
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