pub struct CenteringRing {
pub length_m: f64,
pub outer_radius_m: f64,
pub inner_radius_m: f64,
pub material: Material,
}Expand description
A flat annular ring, or a bulkhead when the inner radius is zero.
Fields§
§length_m: f64Thickness along the axis, m.
outer_radius_m: f64Outer radius, m.
inner_radius_m: f64Inner radius, m (zero for a bulkhead).
material: MaterialMaterial (bulk).
Implementations§
Source§impl CenteringRing
impl CenteringRing
Sourcepub fn bulkhead(length_m: f64, radius_m: f64, material: Material) -> Self
pub fn bulkhead(length_m: f64, radius_m: f64, material: Material) -> Self
A bulkhead: a solid disc.
Sourcepub fn mass_properties(&self) -> Result<MassProperties, DesignError>
pub fn mass_properties(&self) -> Result<MassProperties, DesignError>
Mass properties in the ring’s frame.
§Errors
Geometry and material errors, including an inner radius not below the outer.
Trait Implementations§
Source§impl Clone for CenteringRing
impl Clone for CenteringRing
Source§fn clone(&self) -> CenteringRing
fn clone(&self) -> CenteringRing
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 CenteringRing
impl Debug for CenteringRing
Source§impl<'de> Deserialize<'de> for CenteringRing
impl<'de> Deserialize<'de> for CenteringRing
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 CenteringRing
impl JsonSchema for CenteringRing
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 moreSource§impl PartialEq for CenteringRing
impl PartialEq for CenteringRing
Source§fn eq(&self, other: &CenteringRing) -> bool
fn eq(&self, other: &CenteringRing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CenteringRing
impl Serialize for CenteringRing
impl StructuralPartialEq for CenteringRing
Auto Trait Implementations§
impl Freeze for CenteringRing
impl RefUnwindSafe for CenteringRing
impl Send for CenteringRing
impl Sync for CenteringRing
impl Unpin for CenteringRing
impl UnsafeUnpin for CenteringRing
impl UnwindSafe for CenteringRing
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