pub struct Transition {
pub shape: NoseShape,
pub clipped: bool,
pub length_m: f64,
pub fore_radius_m: f64,
pub aft_radius_m: f64,
pub wall: Wall,
pub fore_shoulder: Option<Shoulder>,
pub aft_shoulder: Option<Shoulder>,
pub material: Material,
}Expand description
A transition between two radii, with optional shoulders at either end.
Fields§
§shape: NoseShapeProfile shape.
clipped: boolWhether the profile is clipped from a longer nose cone (crate::shapes).
length_m: f64Length, m.
fore_radius_m: f64Radius at the forward end, m.
aft_radius_m: f64Radius at the aft end, m.
wall: WallFilled, or a wall of a thickness.
fore_shoulder: Option<Shoulder>Optional shoulder forward of the fore end.
aft_shoulder: Option<Shoulder>Optional shoulder aft of the aft end.
material: MaterialMaterial (bulk).
Implementations§
Source§impl Transition
impl Transition
Sourcepub fn profile(&self) -> Result<Profile, DesignError>
pub fn profile(&self) -> Result<Profile, DesignError>
Sourcepub fn mass_properties(&self) -> Result<MassProperties, DesignError>
pub fn mass_properties(&self) -> Result<MassProperties, DesignError>
Mass properties in the transition’s frame (origin at its fore end, so a fore shoulder lies
at z > 0).
§Errors
Geometry, material and numerical errors from the profile, the solid and the shoulders.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
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 moreSource§impl Debug for Transition
impl Debug for Transition
Source§impl<'de> Deserialize<'de> for Transition
impl<'de> Deserialize<'de> for Transition
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 Transition
impl JsonSchema for Transition
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 PartialEq for Transition
impl PartialEq for Transition
Source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Transition
impl Serialize for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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