pub struct Glass {
pub name: String,
pub catalog: String,
pub formula: i32,
pub c: Vec<f64>,
pub td: [f64; 7],
pub ld: Option<[f64; 2]>,
pub it: Vec<[f64; 3]>,
pub props: Option<GlassProps>,
pub status: Option<u8>,
pub no_substitute: bool,
}Fields§
§name: String§catalog: String§formula: i32分散式の番号(AGF の 1〜13。0 は利用者の材料で、屈折率は拡張の表のカタログ catalog のモデル name が
返す(係数 c は空。crate::usermaterial)。その拡張の無いプロセスでは屈折率を求められない)
c: Vec<f64>§td: [f64; 7]D0 D1 D2 E0 E1 λtk Tref
ld: Option<[f64; 2]>§it: Vec<[f64; 3]>波長 [µm]、内部透過率、厚さ [mm]
props: Option<GlassProps>カタログの性質(AGF の ED・OD の行)。無ければ None
status: Option<u8>カタログの状態(AGF の NM の 8 番目: 0 標準・1 推奨・2 廃止・3 特殊・4 溶解)。書いていなければ None
no_substitute: boolガラスの置き換えの候補にしない(AGF の NM の 7 番目、OpticStudio の Exclude Substitution)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Glass
impl<'de> Deserialize<'de> for Glass
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 Glass
impl JsonSchema for Glass
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 Glass
Auto Trait Implementations§
impl Freeze for Glass
impl RefUnwindSafe for Glass
impl Send for Glass
impl Sync for Glass
impl Unpin for Glass
impl UnsafeUnpin for Glass
impl UnwindSafe for Glass
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