pub struct GlassView {
pub changes: Vec<GlassChangeView>,
pub materials: Vec<(usize, String)>,
pub config_materials: Vec<(usize, Vec<String>)>,
pub reset: Vec<(String, f64)>,
pub tried: usize,
pub merit_before: f64,
}Expand description
ガラスの置き換えの結果(OptimizeView::glass)
Fields§
§changes: Vec<GlassChangeView>置き換えた面(置き換えた順)
materials: Vec<(usize, String)>置き換える面ごとの最後の材料 (面, 名前)。多重構成では最初の構成の材料
config_materials: Vec<(usize, Vec<String>)>最後の材料が構成で違う面の、構成ごとの材料 (面, 名前の並び)。無ければ省く
reset: Vec<(String, f64)>置き換えで 0 にした、変数でない屈折率のずれ・分散の変化 (名前 “5.dn” など, 前の値)。無ければ省く
tried: usize評価した候補の数
merit_before: f64置き換える前(最適化の後)の評価関数の値
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlassView
impl<'de> Deserialize<'de> for GlassView
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 GlassView
Auto Trait Implementations§
impl Freeze for GlassView
impl RefUnwindSafe for GlassView
impl Send for GlassView
impl Sync for GlassView
impl Unpin for GlassView
impl UnsafeUnpin for GlassView
impl UnwindSafe for GlassView
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