pub struct SysSpec {
pub file: PathBuf,
pub glass_dir: Vec<PathBuf>,
pub lens_catalog: Vec<PathBuf>,
pub cfg: usize,
pub state: Option<String>,
pub path: Option<String>,
pub names: ArgNames,
pub strict_macros: bool,
}Expand description
系の読み方(CLI の系の引数、serve の load。reload で同じ読み方を繰り返す)
Fields§
§file: PathBuf.zmx ファイル、プロジェクトファイル(.json)、系ファイル
glass_dir: Vec<PathBuf>ガラスカタログを探すフォルダ
lens_catalog: Vec<PathBuf>プロジェクトファイルのカタログレンズを探すレンズカタログ
cfg: usize.zmx の多重構成の番号(1 始まり)
state: Option<String>プロジェクトファイルの状態の名前
path: Option<String>プロジェクトファイルのビームスプリッターの経路
names: ArgNames誤りの文に書く引数の名前(既定は CLI の旗。serve の load は lensbench_project::open::ArgNames::SERVE)
strict_macros: boolマクロのソルブを解けなかったら(途中で止まった・外して保存された値で固定した)誤りにする。既定(false)は OpticStudio と同じ値で読み、注意を出す(11/17 の決定)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SysSpec
impl RefUnwindSafe for SysSpec
impl Send for SysSpec
impl Sync for SysSpec
impl Unpin for SysSpec
impl UnsafeUnpin for SysSpec
impl UnwindSafe for SysSpec
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