pub struct EngEntry {
pub comments: Vec<String>,
pub name: String,
pub diameter_mm: f64,
pub length_mm: f64,
pub delays: String,
pub propellant_mass_kg: f64,
pub total_mass_kg: f64,
pub manufacturer: String,
pub points: Vec<(f64, f64)>,
}Expand description
One motor in a .eng file.
Fields§
§comments: Vec<String>Comments before the header, without the leading ;.
name: StringThe motor’s name, such as F32 or 1266-J760-WT-19A.
diameter_mm: f64Casing diameter, mm.
length_mm: f64Casing length, mm.
delays: StringThe delay string as written, such as 6-10-14 or P; see EngEntry::delays.
propellant_mass_kg: f64Propellant mass, kg.
total_mass_kg: f64Loaded motor mass, kg.
manufacturer: StringManufacturer abbreviation, such as AT or Cesaroni_Technology.
points: Vec<(f64, f64)>The points as listed: (time s, thrust N).
Implementations§
Source§impl EngEntry
impl EngEntry
Sourcepub fn delays(&self) -> DelayList
pub fn delays(&self) -> DelayList
The delay settings read from EngEntry::delays.
Sourcepub fn thrust_curve(&self) -> Result<ThrustCurve, MotorError>
pub fn thrust_curve(&self) -> Result<ThrustCurve, MotorError>
The entry’s thrust curve, starting from the implicit (0, 0) when the first point is after
ignition.
§Errors
As ThrustCurve::new: negative thrust, decreasing time, or no thrust.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EngEntry
impl<'de> Deserialize<'de> for EngEntry
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
impl StructuralPartialEq for EngEntry
Auto Trait Implementations§
impl Freeze for EngEntry
impl RefUnwindSafe for EngEntry
impl Send for EngEntry
impl Sync for EngEntry
impl Unpin for EngEntry
impl UnsafeUnpin for EngEntry
impl UnwindSafe for EngEntry
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