pub struct TolSpec {Show 24 fields
pub schema: Option<String>,
pub trials: Option<usize>,
pub seed: Option<u64>,
pub dist: Option<Dist>,
pub radial: Option<Radial>,
pub preset: Option<String>,
pub wedge_face: Option<Face>,
pub catalog: Option<bool>,
pub catalog_tols: Option<IndexMap<String, Option<CatEntry>>>,
pub lenses: Option<IndexMap<String, Option<LensEntry>>>,
pub groups: Option<IndexMap<String, Option<GroupTol>>>,
pub tols: Option<Vec<TolItem>>,
pub compensators: Option<Compensators>,
pub comp_iters: Option<usize>,
pub comp_mode: Option<CompModeName>,
pub inverse: Option<InverseSpec>,
pub merit: Option<MeritName>,
pub rings: Option<usize>,
pub reference: Option<RefName>,
pub terms: Option<Value>,
pub sensitivity: Option<bool>,
pub percentiles: Option<Vec<f64>>,
pub samples: Option<bool>,
pub threads: Option<usize>,
}Expand description
設定(すべて省略可)
Fields§
§schema: Option<String>このファイルのスキーマ(読むときは無視する)
trials: Option<usize>試行の数(100)。0 なら感度だけ
seed: Option<u64>乱数の種(1)
dist: Option<Dist>既定の分布(“normal”): “uniform”・“normal”・“normal:3”・“end”
radial: Option<Radial>偏心・傾き・くさびの x・y を組にして円の中で引く: true・false・“uniform”・“normal”・“normal:σの数”
preset: Option<String>玉の既定の公差の組: “commercial”・“precision”・“high”・“none”
wedge_face: Option<Face>くさびを入れる面(“back”)
catalog: Option<bool>カタログの玉はカタログの玉の公差を既定にする(true)
catalog_tols: Option<IndexMap<String, Option<CatEntry>>>メーカーごとの公差 {“メーカー”: 玉の公差と rules}(“*” はほか)
lenses: Option<IndexMap<String, Option<LensEntry>>>玉ごとの上書き {“名前”: 玉の公差 か 組の名前 か null(公差なし)}
groups: Option<IndexMap<String, Option<GroupTol>>>群・ブロックの公差 {“名前”: {“decenter”, “tilt”, “shift”} か null}
tols: Option<Vec<TolItem>>個別の公差の並び
compensators: Option<Compensators>補償子(1 つか並び)
comp_iters: Option<usize>補償子の DLS の反復の上限(10)
comp_mode: Option<CompModeName>補償のしかた(“optimize”): “optimize”(補償子を DLS で)・“paraxial”(像面の前の厚さを近軸の焦点に合わせて動かす。 補償子は使わない)・“none”(補償しない)
inverse: Option<InverseSpec>逆感度(範囲を締める)。{“limit”: 評価関数の上限} か {“increment”: 公称からの変化の上限}
merit: Option<MeritName>評価関数(“wavefront”)
rings: Option<usize>既定の評価関数の瞳のリング数(3)
reference: Option<RefName>§terms: Option<Value>足す評価関数の項(terms.schema.json の形)
sensitivity: Option<bool>公差ごとの感度も求める(true)
percentiles: Option<Vec<f64>>出す百分位([50, 80, 90, 95, 98])
samples: Option<bool>試行ごとのずれと値も返す(false)
threads: Option<usize>スレッド数
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TolSpec
impl<'de> Deserialize<'de> for TolSpec
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 TolSpec
impl JsonSchema for TolSpec
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 TolSpec
impl RefUnwindSafe for TolSpec
impl Send for TolSpec
impl Sync for TolSpec
impl Unpin for TolSpec
impl UnsafeUnpin for TolSpec
impl UnwindSafe for TolSpec
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