Struct fastsim_core::cycle::RustCycleElement
source · pub struct RustCycleElement {
pub time_s: f64,
pub mps: f64,
pub grade: Option<f64>,
pub road_type: Option<f64>,
}Fields§
§time_s: f64time s
mps: f64speed [m/s]
grade: Option<f64>grade [rise/run]
road_type: Option<f64>max possible charge rate from roadway
Trait Implementations§
source§impl Clone for RustCycleElement
impl Clone for RustCycleElement
source§fn clone(&self) -> RustCycleElement
fn clone(&self) -> RustCycleElement
Returns a copy 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 RustCycleElement
impl Debug for RustCycleElement
source§impl Default for RustCycleElement
impl Default for RustCycleElement
source§fn default() -> RustCycleElement
fn default() -> RustCycleElement
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RustCycleElement
impl<'de> Deserialize<'de> for RustCycleElement
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 RustCycleElement
impl PartialEq for RustCycleElement
source§fn eq(&self, other: &RustCycleElement) -> bool
fn eq(&self, other: &RustCycleElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RustCycleElement
impl Serialize for RustCycleElement
impl StructuralPartialEq for RustCycleElement
Auto Trait Implementations§
impl RefUnwindSafe for RustCycleElement
impl Send for RustCycleElement
impl Sync for RustCycleElement
impl Unpin for RustCycleElement
impl UnwindSafe for RustCycleElement
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