#[non_exhaustive]pub enum PartKind {
BodyTube(Tube),
TubeCoupler(Tube),
EngineBlock(Tube),
CenteringRing(Tube),
LaunchLug(Tube),
Bulkhead(Bulkhead),
NoseCone(NoseCone),
Transition(Transition),
Parachute(Parachute),
Streamer(Streamer),
}Expand description
A part’s kind and dimensions.
The five tube-like kinds share Tube’s fields, as the format gives them: an inner and
outer diameter and a length (a centering ring’s length is its thickness).
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.
BodyTube(Tube)
An airframe tube (<BodyTube>).
TubeCoupler(Tube)
A coupler that joins two tubes (<TubeCoupler>); an inner diameter of zero makes it a
solid nose block.
EngineBlock(Tube)
A ring that stops the motor moving forward (<EngineBlock>).
CenteringRing(Tube)
A ring that holds an inner tube in an outer one (<CenteringRing>).
LaunchLug(Tube)
A launch lug (<LaunchLug>).
Bulkhead(Bulkhead)
A solid disc (<BulkHead>).
NoseCone(NoseCone)
A nose cone (<NoseCone>).
Transition(Transition)
A transition between two diameters (<Transition>).
Parachute(Parachute)
A parachute (<Parachute>).
Streamer(Streamer)
A streamer (<Streamer>).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PartKind
impl<'de> Deserialize<'de> for PartKind
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
impl StructuralPartialEq for PartKind
Auto Trait Implementations§
impl Freeze for PartKind
impl RefUnwindSafe for PartKind
impl Send for PartKind
impl Sync for PartKind
impl Unpin for PartKind
impl UnsafeUnpin for PartKind
impl UnwindSafe for PartKind
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