pub enum ApertureKind {
Epd,
FNum,
Na,
Float,
Pwfn,
Cone,
}Expand description
系の開口の種類。JSON の名前は “epd”・“fnum”・“na”・“float”・“pwfn”・“cone”
Variants§
Implementations§
Source§impl ApertureKind
impl ApertureKind
Sourcepub fn os_code(self) -> i64
pub fn os_code(self) -> i64
OpticStudio の開口の種類の番号(.zmx・多重構成の SATP。0 入射瞳径、1 像側 F 値、2 物体側 NA、3 絞り径、 4 近軸作動 F 値、5 物体側の開き角)
Sourcepub fn from_os_code(n: i64) -> Option<ApertureKind>
pub fn from_os_code(n: i64) -> Option<ApertureKind>
ApertureKind::os_code の逆(番号が 0〜5 でなければ None)
Trait Implementations§
Source§impl Clone for ApertureKind
impl Clone for ApertureKind
impl Copy for ApertureKind
Source§impl Debug for ApertureKind
impl Debug for ApertureKind
Source§impl Default for ApertureKind
impl Default for ApertureKind
Source§impl<'de> Deserialize<'de> for ApertureKind
impl<'de> Deserialize<'de> for ApertureKind
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 Eq for ApertureKind
Source§impl JsonSchema for ApertureKind
impl JsonSchema for ApertureKind
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 moreSource§impl PartialEq for ApertureKind
impl PartialEq for ApertureKind
Source§impl Serialize for ApertureKind
impl Serialize for ApertureKind
impl StructuralPartialEq for ApertureKind
Auto Trait Implementations§
impl Freeze for ApertureKind
impl RefUnwindSafe for ApertureKind
impl Send for ApertureKind
impl Sync for ApertureKind
impl Unpin for ApertureKind
impl UnsafeUnpin for ApertureKind
impl UnwindSafe for ApertureKind
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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