#[non_exhaustive]pub enum BodySegment {
Profile {
profile: Profile,
},
Cylinder {
length_m: f64,
radius_m: f64,
},
SphericalCap {
radius_m: f64,
length_m: f64,
},
}Expand description
One piece of a body of revolution, listed from the nose aft.
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.
Profile
A nose cone (the first segment, pointed or with a vertical tip) or a transition.
Cylinder
A cylinder.
SphericalCap
A sphere’s cap from its pole, the first segment of a sphere-cone: the first length_m of
a sphere of radius_m, up to a hemisphere. Its tip is blunt, so the body flies
TN D-4865’s Newtonian cap ahead of the method (crate::blunt_tip).
Trait Implementations§
Source§impl Clone for BodySegment
impl Clone for BodySegment
Source§fn clone(&self) -> BodySegment
fn clone(&self) -> BodySegment
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 moreimpl Copy for BodySegment
Source§impl Debug for BodySegment
impl Debug for BodySegment
Source§impl<'de> Deserialize<'de> for BodySegment
impl<'de> Deserialize<'de> for BodySegment
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 PartialEq for BodySegment
impl PartialEq for BodySegment
Source§fn eq(&self, other: &BodySegment) -> bool
fn eq(&self, other: &BodySegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BodySegment
impl Serialize for BodySegment
impl StructuralPartialEq for BodySegment
Auto Trait Implementations§
impl Freeze for BodySegment
impl RefUnwindSafe for BodySegment
impl Send for BodySegment
impl Sync for BodySegment
impl Unpin for BodySegment
impl UnsafeUnpin for BodySegment
impl UnwindSafe for BodySegment
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