pub struct LoadOptions {
pub cfg: usize,
pub catalog_dirs: Vec<PathBuf>,
pub wavelengths: Option<Vec<f64>>,
pub glasses: Option<HashMap<String, Glass>>,
pub macro_dirs: Vec<PathBuf>,
pub fixed_semi: bool,
}Expand description
読込の追加指定。
Fields§
§cfg: usize§catalog_dirs: Vec<PathBuf>§wavelengths: Option<Vec<f64>>波長を置き換える [µm]
glasses: Option<HashMap<String, Glass>>ファイルの GCAT の代わりに使うガラス
macro_dirs: Vec<PathBuf>ZPL Macro Solve のマクロ(.ZPL)を探すフォルダ(.zmx のフォルダ・その隣の Macros・環境変数
LENSBENCH_MACROS の前に探す。lensbench_core::zpl_solve::macro_dirs)
fixed_semi: boolカタログの玉として読む: 半直径をファイルの値で固定する(径は決まっている。自動の面も光線から 求めない)。系だけの設定(瞳のアポダイゼーション GFAC)は誤りにせず注意だけにする
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§fn clone(&self) -> LoadOptions
fn clone(&self) -> LoadOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadOptions
impl Debug for LoadOptions
Source§impl Default for LoadOptions
impl Default for LoadOptions
Source§fn default() -> LoadOptions
fn default() -> LoadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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,
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