pub enum ExampleDrag {
Constant(f64),
Knots {
points: &'static [(f64, f64)],
power_on_factor: f64,
},
Files {
power_off: &'static str,
power_on: &'static str,
scaled_to: Option<(f64, f64)>,
},
}Expand description
The drag the example flies, as its notebook gives it: the second, diagnostic flight’s.
Variants§
Constant(f64)
One C_D, power off and on.
Knots
(Mach, C_D) knots, linear between and held outside; power on is power_on_factor times.
Fields
Files
(Mach, C_D) CSV files under refs/rocketpy/data/rockets/, linear and held outside,
optionally scaled so power off reads C_D at a Mach number.
Trait Implementations§
Source§impl Clone for ExampleDrag
impl Clone for ExampleDrag
Source§fn clone(&self) -> ExampleDrag
fn clone(&self) -> ExampleDrag
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 ExampleDrag
Source§impl Debug for ExampleDrag
impl Debug for ExampleDrag
Source§impl PartialEq for ExampleDrag
impl PartialEq for ExampleDrag
Source§fn eq(&self, other: &ExampleDrag) -> bool
fn eq(&self, other: &ExampleDrag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExampleDrag
Auto Trait Implementations§
impl Freeze for ExampleDrag
impl RefUnwindSafe for ExampleDrag
impl Send for ExampleDrag
impl Sync for ExampleDrag
impl Unpin for ExampleDrag
impl UnsafeUnpin for ExampleDrag
impl UnwindSafe for ExampleDrag
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