#[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§
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<NoseShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NoseShape, <__D as Deserializer<'de>>::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 moreSource§impl Serialize for NoseShape
impl Serialize for NoseShape
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more