#[non_exhaustive]pub enum Finish {
Show 16 variants
Mirror {},
AverageGlass {},
Polished {},
SheetMetal {},
OptimumPaint {},
PlanedWood {},
MassProductionPaint {},
BareSteel {},
SmoothCement {},
AsphaltCoating {},
DipGalvanized {},
PoorPaint {},
CastIron {},
RawWood {},
Concrete {},
Custom {
roughness_m: f64,
},
}Expand description
A surface finish, by its roughness height R_s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Mirror
A mirror-like surface, 0 µm (Barrowman Table 4-1).
AverageGlass
Average glass, 0.1 µm.
Polished
A finished and polished surface, 0.5 µm.
SheetMetal
An aircraft-type sheet-metal surface, 2 µm (Barrowman Table 4-1 only).
OptimumPaint
An optimum paint-sprayed surface, 5 µm.
PlanedWood
Planed wooden boards, 15 µm.
MassProductionPaint
Paint in aircraft mass production, 20 µm. The default.
BareSteel
Bare steel plating, 50 µm (Barrowman Table 4-1 only).
SmoothCement
A smooth cement surface, 50 µm.
AsphaltCoating
A surface with an asphalt-type coating, 100 µm (Barrowman Table 4-1 only).
DipGalvanized
A dip-galvanized metal surface, 150 µm.
PoorPaint
Incorrectly sprayed aircraft paint, 200 µm.
CastIron
The natural surface of cast iron, 250 µm (Barrowman Table 4-1 only).
RawWood
Raw wooden boards, 500 µm.
Concrete
An average concrete surface, 1000 µm.
Custom
A given roughness height.
Implementations§
Source§impl Finish
impl Finish
Sourcepub fn roughness_m(&self) -> Result<f64, DesignError>
pub fn roughness_m(&self) -> Result<f64, DesignError>
Roughness height R_s, m.
§Errors
DesignError::Domain for a custom height that is negative or not finite.
Trait Implementations§
impl Copy for Finish
Source§impl<'de> Deserialize<'de> for Finish
impl<'de> Deserialize<'de> for Finish
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>,
Source§impl JsonSchema for Finish
impl JsonSchema for Finish
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more