#[non_exhaustive]pub struct VehicleLoad {
pub amount: i64,
/* private fields */
}Expand description
Reports the actual load of the vehicle at some point along the route, for a given type (see Transition.vehicle_loads).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.amount: i64The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.
Implementations§
Trait Implementations§
Source§impl Clone for VehicleLoad
impl Clone for VehicleLoad
Source§fn clone(&self) -> VehicleLoad
fn clone(&self) -> VehicleLoad
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VehicleLoad
impl Debug for VehicleLoad
Source§impl Default for VehicleLoad
impl Default for VehicleLoad
Source§fn default() -> VehicleLoad
fn default() -> VehicleLoad
Returns the “default value” for a type. Read more
Source§impl Message for VehicleLoad
impl Message for VehicleLoad
Source§impl PartialEq for VehicleLoad
impl PartialEq for VehicleLoad
impl StructuralPartialEq for VehicleLoad
Auto Trait Implementations§
impl Freeze for VehicleLoad
impl RefUnwindSafe for VehicleLoad
impl Send for VehicleLoad
impl Sync for VehicleLoad
impl Unpin for VehicleLoad
impl UnwindSafe for VehicleLoad
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