pub struct MacroSolveOp<S> {
pub surface: S,
pub macro_ref: Ref,
pub what: String,
}Expand description
円錐係数・半直径・機械半径・面タイプのパラメータを ZPL マクロで解く(同じ面・同じ量のものは置き換える。OpticStudio の KZPL・DIAM の Macro Solve・PZPL)
Fields§
§surface: S§macro_ref: Refマクロの名前か番号(系のマクロ、プロジェクトでは macros。番号は 0 始まり)
what: String解く量: k(円錐係数)・semi(半直径)・mech(機械半径)・p1 …(面タイプのパラメータ)
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for MacroSolveOp<S>
impl<S: Clone> Clone for MacroSolveOp<S>
Source§impl<S: Debug> Debug for MacroSolveOp<S>
impl<S: Debug> Debug for MacroSolveOp<S>
Source§impl<'de, S> Deserialize<'de> for MacroSolveOp<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for MacroSolveOp<S>where
S: Deserialize<'de>,
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<S> JsonSchema for MacroSolveOp<S>where
S: JsonSchema,
impl<S> JsonSchema for MacroSolveOp<S>where
S: JsonSchema,
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<S: PartialEq> PartialEq for MacroSolveOp<S>
impl<S: PartialEq> PartialEq for MacroSolveOp<S>
Source§impl<S> Serialize for MacroSolveOp<S>where
S: Serialize,
impl<S> Serialize for MacroSolveOp<S>where
S: Serialize,
impl<S: PartialEq> StructuralPartialEq for MacroSolveOp<S>
Auto Trait Implementations§
impl<S> Freeze for MacroSolveOp<S>where
S: Freeze,
impl<S> RefUnwindSafe for MacroSolveOp<S>where
S: RefUnwindSafe,
impl<S> Send for MacroSolveOp<S>where
S: Send,
impl<S> Sync for MacroSolveOp<S>where
S: Sync,
impl<S> Unpin for MacroSolveOp<S>where
S: Unpin,
impl<S> UnsafeUnpin for MacroSolveOp<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for MacroSolveOp<S>where
S: UnwindSafe,
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