pub struct SolveOp<S> {
pub surface: S,
pub kind: Option<String>,
pub value: Option<Num>,
pub other: Option<S>,
pub param: Option<Num>,
pub macro_ref: Option<Ref>,
}Expand description
厚さか曲率のソルブを置く(同じ面・同じ量のソルブは置き換える)
Fields§
§surface: S§kind: Option<String>種類(既定 marginal_height、lensbench_core::solves::SOLVE_KINDS)
value: Option<Num>目標の値(既定 0)
other: Option<S>別の面を参照する種類の面
param: Option<Num>帯・縁の高さ(既定 0)。種類 macro_curv・macro_thick ではマクロの番号(macro で名前でも指せる)
macro_ref: Option<Ref>種類 macro_curv・macro_thick のマクロの名前か番号(系のマクロ、プロジェクトでは macros)。書けば param より優先
Implementations§
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for SolveOp<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for SolveOp<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 SolveOp<S>where
S: JsonSchema,
impl<S> JsonSchema for SolveOp<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 moreimpl<S: PartialEq> StructuralPartialEq for SolveOp<S>
Auto Trait Implementations§
impl<S> Freeze for SolveOp<S>where
S: Freeze,
impl<S> RefUnwindSafe for SolveOp<S>where
S: RefUnwindSafe,
impl<S> Send for SolveOp<S>where
S: Send,
impl<S> Sync for SolveOp<S>where
S: Sync,
impl<S> Unpin for SolveOp<S>where
S: Unpin,
impl<S> UnsafeUnpin for SolveOp<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SolveOp<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