pub enum Aperture {
Circular {
min: f64,
max: f64,
dx: f64,
dy: f64,
},
Rect {
hx: f64,
hy: f64,
dx: f64,
dy: f64,
},
Floating {
semi: Option<f64>,
},
Ellipse {
hx: f64,
hy: f64,
dx: f64,
dy: f64,
},
Obscuration {
min: f64,
max: f64,
dx: f64,
dy: f64,
},
Spider {
width: f64,
arms: u32,
dx: f64,
dy: f64,
},
}Expand description
面の開口
Variants§
Circular
円(最小・最大半径、偏心)
Rect
矩形(x・y の半幅、偏心)
Floating
浮動開口(半径は面の半直径。違うときだけ semi)
Ellipse
楕円(x・y の半軸、偏心)
Obscuration
円形遮蔽(最小〜最大半径の間を遮る)
Spider
スパイダー(幅 width の腕 arms 本)
Trait Implementations§
impl Copy for Aperture
Source§impl<'de> Deserialize<'de> for Aperture
impl<'de> Deserialize<'de> for Aperture
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 Aperture
impl JsonSchema for Aperture
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 Aperture
Auto Trait Implementations§
impl Freeze for Aperture
impl RefUnwindSafe for Aperture
impl Send for Aperture
impl Sync for Aperture
impl Unpin for Aperture
impl UnsafeUnpin for Aperture
impl UnwindSafe for Aperture
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