pub struct GradiumProfile {
pub name: String,
pub family: String,
pub zmax: f64,
pub coef: Vec<f64>,
pub file: String,
pub flipped: bool,
}Expand description
Gradium の分布(PROFILE.GRD の組)
Fields§
§name: String§family: String分散の名前(SGRIN.DAT の組)
zmax: f64玉の素材の厚さ z_max
coef: Vec<f64>n_0 … n_11
file: String読んだファイルの名前(PROFILE.GRD など。.zmx の COFN に書く)
flipped: bool分布を z について裏返した(鏡の後に置いた)もの。係数はファイルの組と違うので .zmx には書けない
Trait Implementations§
Source§impl Clone for GradiumProfile
impl Clone for GradiumProfile
Source§impl Debug for GradiumProfile
impl Debug for GradiumProfile
Source§impl<'de> Deserialize<'de> for GradiumProfile
impl<'de> Deserialize<'de> for GradiumProfile
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 GradiumProfile
impl JsonSchema for GradiumProfile
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 GradiumProfile
impl PartialEq for GradiumProfile
Source§impl Serialize for GradiumProfile
impl Serialize for GradiumProfile
impl StructuralPartialEq for GradiumProfile
Auto Trait Implementations§
impl Freeze for GradiumProfile
impl RefUnwindSafe for GradiumProfile
impl Send for GradiumProfile
impl Sync for GradiumProfile
impl Unpin for GradiumProfile
impl UnsafeUnpin for GradiumProfile
impl UnwindSafe for GradiumProfile
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