#[non_exhaustive]pub enum NoseShape {
Conical {},
Ogive {
radius_ratio: f64,
},
Elliptical {},
PowerSeries {
exponent: f64,
},
ParabolicSeries {
parameter: f64,
},
Haack {
parameter: f64,
},
}Expand description
The shape of a nose cone, or of a transition’s profile.
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.
Conical
A straight cone.
Ogive
A circular-arc ogive whose arc radius is radius_ratio times the tangent-ogive radius.
Fields
Elliptical
Half an ellipse: a blunt, rounded tip.
PowerSeries
g = ξⁿ: n = 1 is a cone and n = ½ a paraboloid.
Fields
§
exponent: f64The exponent n, in [0.05, 1] (MIN_POWER_EXPONENT).
ParabolicSeries
Parabolic series: K′ = 0 is a cone and K′ = 1 a full parabola, tangent at the base.
Haack
Haack series: C = 0 is the von Kármán (LD-Haack) ogive and C = 1/3 the LV-Haack.
Implementations§
Source§impl NoseShape
impl NoseShape
Sourcepub const TANGENT_OGIVE: Self
pub const TANGENT_OGIVE: Self
The tangent ogive.
Sourcepub const VON_KARMAN: Self
pub const VON_KARMAN: Self
The von Kármán (LD-Haack) ogive.
Trait Implementations§
impl Copy for NoseShape
Source§impl<'de> Deserialize<'de> for NoseShape
impl<'de> Deserialize<'de> for NoseShape
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 JsonSchema for NoseShape
impl JsonSchema for NoseShape
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for NoseShape
Auto Trait Implementations§
impl Freeze for NoseShape
impl RefUnwindSafe for NoseShape
impl Send for NoseShape
impl Sync for NoseShape
impl Unpin for NoseShape
impl UnsafeUnpin for NoseShape
impl UnwindSafe for NoseShape
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