pub enum SurfAperture {
Circular {
min: f64,
max: f64,
dx: f64,
dy: f64,
},
Rect {
hx: f64,
hy: f64,
dx: f64,
dy: 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,
},
Floating,
}Expand description
面の開口(偏心 dx・dy は省略で 0)
Variants§
Circular
円(最小・最大半径)
Rect
矩形(x・y の半幅)
Ellipse
楕円(x・y の半軸)
Obscuration
円形の遮蔽(最小〜最大半径の間を遮る)
Spider
スパイダー(中心から外へ伸びる幅 width の腕 arms 本を遮る。最初の腕は +x、360° を等分)
Floating
半径(semi)で切る
Trait Implementations§
Source§impl Clone for SurfAperture
impl Clone for SurfAperture
impl Copy for SurfAperture
Source§impl Debug for SurfAperture
impl Debug for SurfAperture
Source§impl<'de> Deserialize<'de> for SurfAperture
impl<'de> Deserialize<'de> for SurfAperture
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 SurfAperture
impl JsonSchema for SurfAperture
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 SurfAperture
impl PartialEq for SurfAperture
Source§impl Serialize for SurfAperture
impl Serialize for SurfAperture
impl StructuralPartialEq for SurfAperture
Auto Trait Implementations§
impl Freeze for SurfAperture
impl RefUnwindSafe for SurfAperture
impl Send for SurfAperture
impl Sync for SurfAperture
impl Unpin for SurfAperture
impl UnsafeUnpin for SurfAperture
impl UnwindSafe for SurfAperture
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