#[non_exhaustive]pub enum Curve {
Rasp(Parsed<EngFile>),
RockSim(Parsed<RseFile>),
}Expand description
A data file read by hpr_motor.
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.
Rasp(Parsed<EngFile>)
A RASP file, read by hpr_motor::eng::parse.
RockSim(Parsed<RseFile>)
A RockSim file, read by hpr_motor::rse::parse.
Implementations§
Source§impl Curve
impl Curve
Sourcepub fn thrust_curve(&self) -> Result<ThrustCurve, MotorError>
pub fn thrust_curve(&self) -> Result<ThrustCurve, MotorError>
The first motor’s thrust curve: a RASP file’s first entry, a RockSim file’s first engine.
§Errors
MotorError when the curve breaks hpr_motor’s rules, or the file holds no motor.
Trait Implementations§
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnsafeUnpin for Curve
impl UnwindSafe for Curve
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