pub enum FieldSolveSpec {
Position {
surface: String,
},
DirSum {
s1: String,
s2: String,
},
DirDiff {
s1: String,
s2: String,
},
}Expand description
条件で定める視野の条件。面は番号か名前(面のコメント)
Variants§
Position
面 surface での主光線の位置 = 視野の値
DirSum
面 s1・s2 での主光線の方向余弦 (l, m) の和 = 視野の値(法線入射で戻るなら 0)
DirDiff
差(s1 − s2)= 視野の値
Trait Implementations§
Source§impl Clone for FieldSolveSpec
impl Clone for FieldSolveSpec
Source§impl Debug for FieldSolveSpec
impl Debug for FieldSolveSpec
Source§impl<'de> Deserialize<'de> for FieldSolveSpec
impl<'de> Deserialize<'de> for FieldSolveSpec
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
impl Eq for FieldSolveSpec
Source§impl JsonSchema for FieldSolveSpec
impl JsonSchema for FieldSolveSpec
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 FieldSolveSpec
impl PartialEq for FieldSolveSpec
Source§impl Serialize for FieldSolveSpec
impl Serialize for FieldSolveSpec
impl StructuralPartialEq for FieldSolveSpec
Auto Trait Implementations§
impl Freeze for FieldSolveSpec
impl RefUnwindSafe for FieldSolveSpec
impl Send for FieldSolveSpec
impl Sync for FieldSolveSpec
impl Unpin for FieldSolveSpec
impl UnsafeUnpin for FieldSolveSpec
impl UnwindSafe for FieldSolveSpec
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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