pub struct EngineOutput {
pub value: f64,
pub unit: EngineOutputUnit,
}Expand description
EngineOutput : Engine power output of vehicle.
Fields§
§value: f64Engine power value in specified unit.
unit: EngineOutputUnitImplementations§
Source§impl EngineOutput
impl EngineOutput
Sourcepub fn new(value: f64, unit: EngineOutputUnit) -> EngineOutput
pub fn new(value: f64, unit: EngineOutputUnit) -> EngineOutput
Engine power output of vehicle.
Trait Implementations§
Source§impl Clone for EngineOutput
impl Clone for EngineOutput
Source§fn clone(&self) -> EngineOutput
fn clone(&self) -> EngineOutput
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 EngineOutput
impl Debug for EngineOutput
Source§impl Default for EngineOutput
impl Default for EngineOutput
Source§fn default() -> EngineOutput
fn default() -> EngineOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EngineOutput
impl<'de> Deserialize<'de> for EngineOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EngineOutput
impl PartialEq for EngineOutput
Source§impl Serialize for EngineOutput
impl Serialize for EngineOutput
impl StructuralPartialEq for EngineOutput
Auto Trait Implementations§
impl Freeze for EngineOutput
impl RefUnwindSafe for EngineOutput
impl Send for EngineOutput
impl Sync for EngineOutput
impl Unpin for EngineOutput
impl UnwindSafe for EngineOutput
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