#[non_exhaustive]pub struct Transition {
pub shape: Shape,
pub length_m: f64,
pub fore_outer_diameter_m: f64,
pub fore_shoulder_diameter_m: f64,
pub fore_shoulder_length_m: f64,
pub aft_outer_diameter_m: f64,
pub aft_shoulder_diameter_m: f64,
pub aft_shoulder_length_m: f64,
pub filled: Option<bool>,
pub thickness_m: Option<f64>,
pub material: MaterialRef,
}Expand description
A transition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape: ShapeProfile shape. The file gives no shape parameter.
length_m: f64Length, not counting shoulders, m.
fore_outer_diameter_m: f64Forward outer diameter, m.
fore_shoulder_diameter_m: f64Forward shoulder diameter, m; zero for none.
fore_shoulder_length_m: f64Forward shoulder length, m; zero for none.
aft_outer_diameter_m: f64Aft outer diameter, m.
aft_shoulder_diameter_m: f64Aft shoulder diameter, m; zero for none.
aft_shoulder_length_m: f64Aft shoulder length, m; zero for none.
filled: Option<bool><Filled> as written; None if absent.
thickness_m: Option<f64>Wall thickness, m; None if absent.
material: MaterialRefMaterial (bulk).
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 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