#[non_exhaustive]pub struct Parachute {
pub diameter_m: f64,
pub sides: u32,
pub line_count: u32,
pub line_length_m: f64,
pub material: MaterialRef,
pub line_material: Option<MaterialRef>,
}Expand description
A parachute.
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.diameter_m: f64Canopy diameter, m.
sides: u32The canopy’s number of sides.
line_count: u32Number of shroud lines.
line_length_m: f64Length of each shroud line, m.
material: MaterialRefCanopy fabric (surface).
line_material: Option<MaterialRef>Shroud-line cord (line); None if the file names none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parachute
impl<'de> Deserialize<'de> for Parachute
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 Parachute
Auto Trait Implementations§
impl Freeze for Parachute
impl RefUnwindSafe for Parachute
impl Send for Parachute
impl Sync for Parachute
impl Unpin for Parachute
impl UnsafeUnpin for Parachute
impl UnwindSafe for Parachute
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