pub struct TsagSpec {
pub surf: usize,
pub point: Option<[f64; 3]>,
pub tilt: Option<[f64; 3]>,
pub flat: Option<bool>,
pub target: Option<f64>,
}Expand description
tsag の項(面 surf の、点から傾けた向きに測った矢高)
Fields§
§surf: usize§point: Option<[f64; 3]>測る点の面の局所座標 [x, y, z](既定 [0, 0, 0])
tilt: Option<[f64; 3]>測る向き: z 軸を x・y・z 軸まわりに回す角 [deg](既定 [0, 0, 0])
flat: Option<bool>面をクリア半径の外で縁の矢高のまま平らにする(玉の半径がクリア半径より大きい面だけ。既定 false)
target: Option<f64>目標(target・min・max のどれかが要る)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TsagSpec
impl<'de> Deserialize<'de> for TsagSpec
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 TsagSpec
impl JsonSchema for TsagSpec
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 moreAuto Trait Implementations§
impl Freeze for TsagSpec
impl RefUnwindSafe for TsagSpec
impl Send for TsagSpec
impl Sync for TsagSpec
impl Unpin for TsagSpec
impl UnsafeUnpin for TsagSpec
impl UnwindSafe for TsagSpec
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