pub struct UnitView {
pub name: String,
pub spans: Vec<[usize; 2]>,
pub auto: bool,
pub motion: [f64; 5],
pub shift: f64,
pub dn: Option<f64>,
pub disp: Option<f64>,
}Expand description
玉・群(surface の結果の units の 1 つ)
Fields§
§name: String§spans: Vec<[usize; 2]>面の範囲 (最初, 最後) の並び
auto: bool読込で作った玉(lens1 …)
motion: [f64; 5]剛体の動き dx dy tx ty tz [mm, deg](NaN は JSON の null)
shift: f64群の移動 [mm]
dn: Option<f64>範囲の中の媒質の dn・disp(媒質が無いか面ごとに違えば None)
disp: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitView
impl<'de> Deserialize<'de> for UnitView
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
impl StructuralPartialEq for UnitView
Auto Trait Implementations§
impl Freeze for UnitView
impl RefUnwindSafe for UnitView
impl Send for UnitView
impl Sync for UnitView
impl Unpin for UnitView
impl UnsafeUnpin for UnitView
impl UnwindSafe for UnitView
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,
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