pub struct LaunchLug {
pub length_m: f64,
pub outer_radius_m: f64,
pub thickness_m: f64,
pub angle_rad: f64,
pub count: u32,
pub spacing_m: f64,
pub material: Material,
}Expand description
A launch lug: a tube on the outside of the airframe, parallel to it.
Fields§
§length_m: f64Length, m.
outer_radius_m: f64Outer radius, m.
thickness_m: f64Wall thickness, m.
angle_rad: f64Roll angle from x_B toward y_B, rad.
count: u32Number of lugs in a row, 1 to 64 (MAX_INSTANCES).
spacing_m: f64Axial distance between the forward ends of consecutive lugs, m.
material: MaterialMaterial (bulk).
Implementations§
Source§impl LaunchLug
impl LaunchLug
Sourcepub fn mass_properties(
&self,
body_radius_m: f64,
) -> Result<MassProperties, DesignError>
pub fn mass_properties( &self, body_radius_m: f64, ) -> Result<MassProperties, DesignError>
Mass properties in the lug’s frame, touching a body of radius body_radius_m.
§Errors
Geometry and material errors.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LaunchLug
impl<'de> Deserialize<'de> for LaunchLug
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 LaunchLug
impl JsonSchema for LaunchLug
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 moreimpl StructuralPartialEq for LaunchLug
Auto Trait Implementations§
impl Freeze for LaunchLug
impl RefUnwindSafe for LaunchLug
impl Send for LaunchLug
impl Sync for LaunchLug
impl Unpin for LaunchLug
impl UnsafeUnpin for LaunchLug
impl UnwindSafe for LaunchLug
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