pub struct MechPart {}Expand description
系に置いた機構部品
Fields§
§name: String§surface: usize置く基準の面(その面の局所座標)
offset: [f64; 3]基準の面の局所座標でのずれ [dx, dy, dz] mm
tilt: [f64; 2]傾き [tx, ty] [deg](ずらした後、x → y の順)
bores: Vec<Bore>§length: f64外形(描画・重なりの確認用): 部品の z の範囲と外径の半径。0 なら穴から決める
outer_radius: f64§hold_radius: f64素子を保持する内壁の半径(保持径の半分)。0 なら穴の半径が内壁
rod_spacing: f64ケージのロッドの間隔 mm(0 はケージ板でない)
square: bool外形が角(outer_radius は正方形の一辺の半分、辺は部品の x・y 軸に沿う)。false は丸
step: String部品の詳しい形の STEP(品の公式の STEP を取ったキャッシュのファイル)。描画で詳しい形を選ぶと使う
step_flip: boolSTEP の形を裏返して置く(部品を reversed で置いた。z → 長さ − z、y → −y)
holds: Vec<usize>保持する素子の面(系の面の番号)。はみ出し・保持径の確認に使う
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MechPart
impl<'de> Deserialize<'de> for MechPart
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 MechPart
impl JsonSchema for MechPart
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 MechPart
Auto Trait Implementations§
impl Freeze for MechPart
impl RefUnwindSafe for MechPart
impl Send for MechPart
impl Sync for MechPart
impl Unpin for MechPart
impl UnsafeUnpin for MechPart
impl UnwindSafe for MechPart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more