pub struct ThrustHistory { /* private fields */ }Expand description
A thrust against flight time, N, flown in place of the motors’ (the module says what
stays HPR Sim’s). It serializes as its times_s and thrust_n and is checked again when
read.
Implementations§
Source§impl ThrustHistory
impl ThrustHistory
Sourcepub fn new(times_s: Vec<f64>, thrust_n: Vec<f64>) -> Result<Self, SimError>
pub fn new(times_s: Vec<f64>, thrust_n: Vec<f64>) -> Result<Self, SimError>
The thrust thrust_n[i] at flight time times_s[i].
§Errors
SimError::History if the lists differ in length or are empty, a number isn’t finite,
the times don’t rise, the first comes after launch (0), a thrust is negative, or the
last isn’t zero.
Trait Implementations§
Source§impl Clone for ThrustHistory
impl Clone for ThrustHistory
Source§fn clone(&self) -> ThrustHistory
fn clone(&self) -> ThrustHistory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThrustHistory
impl Debug for ThrustHistory
Source§impl<'de> Deserialize<'de> for ThrustHistory
impl<'de> Deserialize<'de> for ThrustHistory
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 ThrustHistory
impl PartialEq for ThrustHistory
Source§fn eq(&self, other: &ThrustHistory) -> bool
fn eq(&self, other: &ThrustHistory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThrustHistory
impl Serialize for ThrustHistory
impl StructuralPartialEq for ThrustHistory
Auto Trait Implementations§
impl Freeze for ThrustHistory
impl RefUnwindSafe for ThrustHistory
impl Send for ThrustHistory
impl Sync for ThrustHistory
impl Unpin for ThrustHistory
impl UnsafeUnpin for ThrustHistory
impl UnwindSafe for ThrustHistory
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