pub enum Aperture {
None,
Circular {
min: f64,
max: f64,
dx: f64,
dy: f64,
},
Rect {
hx: f64,
hy: f64,
dx: f64,
dy: f64,
},
Floating {
semi: f64,
},
Ellipse {
hx: f64,
hy: f64,
dx: f64,
dy: f64,
},
Obsc {
min: f64,
max: f64,
dx: f64,
dy: f64,
},
Spider {
width: f64,
arms: u32,
dx: f64,
dy: f64,
},
}Variants§
None
Circular
最小・最大半径、偏心 x y
Rect
x・y の半幅、偏心
Floating
自動の半径(既定では切らない)
Ellipse
楕円(x・y の半軸、偏心)
Obsc
円形遮蔽(最小〜最大半径の間を遮る)
Spider
スパイダー(.zmx の SPID): 中心(偏心 dx dy)から外へ無限に伸びる幅 width(全幅)の腕 arms 本を遮る。 腕は 360° を等分し、最初の腕は +x の向き
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
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