pub struct StepSize {
pub thickness: f64,
pub diameter: Value,
pub unit_mm: f64,
pub note: String,
pub frame: Option<MechSpec>,
pub merged: bool,
pub mech: bool,
pub retaining_rings: Vec<RetainingRing>,
}Expand description
STEP から測った大きさ
Fields§
§thickness: f64厚さ [mm](円の軸の向きの長さ。円が無ければ箱の最も短い辺)
diameter: Value径 [mm](円の最大の直径。円が無ければ箱の残りの 2 辺 [幅, 高さ])
unit_mm: f64長さの単位の倍率(mm へ)
note: String測り方の説明
frame: Option<MechSpec>枠付きの品の枠(機構部品の寸法、z は枠の端から)。ガラスは thickness・diameter
merged: boolガラスと枠が 1 つの立体で、ガラスの径は見えている径(本当の径は仕様表で補う。lensbench-catalog の spec_glass_diameter)
mech: boolガラスの無い機構部品(チューブ・ケージ板・マウント)。厚さ・径は枠の長さ・外径で、寸法は frame
retaining_rings: Vec<RetainingRing>機構部品の付属の止め輪(SM1RR など)。素子に合わせて動かすので frame に含めない。z は枠の端から
Trait Implementations§
impl StructuralPartialEq for StepSize
Auto Trait Implementations§
impl Freeze for StepSize
impl RefUnwindSafe for StepSize
impl Send for StepSize
impl Sync for StepSize
impl Unpin for StepSize
impl UnsafeUnpin for StepSize
impl UnwindSafe for StepSize
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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