pub struct PolarizerSpec {
pub axis_deg: f64,
pub extinction_ratio: f64,
pub transmittance: f64,
}Expand description
直線偏光子(理想): 透過軸の向きの強度透過率 transmittance、直交する向きは transmittance / extinction_ratio
Fields§
§axis_deg: f64透過軸の向き [deg](x から y へ)
extinction_ratio: f64消光比(1000 は 1000:1。省略は無限 = 直交の向きを通さない)
transmittance: f64透過軸の向きの強度透過率
Implementations§
Trait Implementations§
Source§impl Clone for PolarizerSpec
impl Clone for PolarizerSpec
impl Copy for PolarizerSpec
Source§impl Debug for PolarizerSpec
impl Debug for PolarizerSpec
Source§impl<'de> Deserialize<'de> for PolarizerSpec
impl<'de> Deserialize<'de> for PolarizerSpec
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 PolarizerSpec
impl JsonSchema for PolarizerSpec
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 PolarizerSpec
impl PartialEq for PolarizerSpec
Source§impl Serialize for PolarizerSpec
impl Serialize for PolarizerSpec
impl StructuralPartialEq for PolarizerSpec
Auto Trait Implementations§
impl Freeze for PolarizerSpec
impl RefUnwindSafe for PolarizerSpec
impl Send for PolarizerSpec
impl Sync for PolarizerSpec
impl Unpin for PolarizerSpec
impl UnsafeUnpin for PolarizerSpec
impl UnwindSafe for PolarizerSpec
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