[][src]Struct lmb_engine_simulator::engine::json_reader::JsonEngine

pub struct JsonEngine {
    pub speed: f64,
    pub eccentricity: f64,
    pub conrod: f64,
    pub displacement: f64,
    pub bore: f64,
    pub firing_order: String,
    pub combustion: Option<JsonCombustion>,
    pub injector: Option<JsonInjector>,
    pub cylinders: Vec<JsonCylinder>,
}

Struct used to read the engine data from .json file.

Fields

speed: f64

[RPM]

eccentricity: f64

[mm]

conrod: f64

[mm]

displacement: f64

[cm³]

bore: f64

[mm]

firing_order: String

i.e "1-3-2"

combustion: Option<JsonCombustion>injector: Option<JsonInjector>cylinders: Vec<JsonCylinder>

Trait Implementations

impl Debug for JsonEngine[src]

impl<'de> Deserialize<'de> for JsonEngine[src]

impl Serialize for JsonEngine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.