#[non_exhaustive]pub enum ReferenceReading {
Complete(Option<f64>),
Aborted,
}Expand description
A reference flight’s value for one metric.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Complete(Option<f64>)
The flight ran to its end. None, or OpenRocket’s NaN, means it has no value: for a
metric taken at an event, that the event never happened, which OpenRocket 24.12 writes as
NaN exactly then.
Aborted
The tool stopped the flight early (OpenRocket’s SIM_ABORT), so even its peaks are where
it stopped, not a flight’s.
Trait Implementations§
Source§impl Clone for ReferenceReading
impl Clone for ReferenceReading
Source§fn clone(&self) -> ReferenceReading
fn clone(&self) -> ReferenceReading
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 moreimpl Copy for ReferenceReading
Source§impl Debug for ReferenceReading
impl Debug for ReferenceReading
Source§impl<'de> Deserialize<'de> for ReferenceReading
impl<'de> Deserialize<'de> for ReferenceReading
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 ReferenceReading
impl PartialEq for ReferenceReading
Source§fn eq(&self, other: &ReferenceReading) -> bool
fn eq(&self, other: &ReferenceReading) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReferenceReading
impl Serialize for ReferenceReading
impl StructuralPartialEq for ReferenceReading
Auto Trait Implementations§
impl Freeze for ReferenceReading
impl RefUnwindSafe for ReferenceReading
impl Send for ReferenceReading
impl Sync for ReferenceReading
impl Unpin for ReferenceReading
impl UnsafeUnpin for ReferenceReading
impl UnwindSafe for ReferenceReading
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