pub struct ProfileDragPoint {
pub mach: f64,
pub cd: f64,
}Expand description
One Mach/Cd point of a saved custom drag curve (profile schema v2, MBA-1323 Phase 2).
Both fields are unit-invariant (Mach is dimensionless; Cd is dimensionless), so
ProfileData::converted_to (in main.rs) leaves drag_curve untouched too.
Fields§
§mach: f64§cd: f64Trait Implementations§
Source§impl Clone for ProfileDragPoint
impl Clone for ProfileDragPoint
Source§fn clone(&self) -> ProfileDragPoint
fn clone(&self) -> ProfileDragPoint
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 ProfileDragPoint
impl Debug for ProfileDragPoint
Source§impl<'de> Deserialize<'de> for ProfileDragPoint
impl<'de> Deserialize<'de> for ProfileDragPoint
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 ProfileDragPoint
impl PartialEq for ProfileDragPoint
Source§impl Serialize for ProfileDragPoint
impl Serialize for ProfileDragPoint
impl StructuralPartialEq for ProfileDragPoint
Auto Trait Implementations§
impl Freeze for ProfileDragPoint
impl RefUnwindSafe for ProfileDragPoint
impl Send for ProfileDragPoint
impl Sync for ProfileDragPoint
impl Unpin for ProfileDragPoint
impl UnsafeUnpin for ProfileDragPoint
impl UnwindSafe for ProfileDragPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.