pub struct SwapReq {
pub spec: Value,
pub project: Option<Value>,
pub top: Option<usize>,
pub threads: Option<usize>,
pub count_only: bool,
}Expand description
カタログレンズの差し替え探索(GUI)。params は lensbench swap --spec の JSON(slots・vars・merit・
reference・rings・iters・efl・state・max_count)に加えて:
- project: プロジェクトの JSON(省けば読み込んだファイル。読み込んだ後の変更は使わない)
- top: 返す組の数(50。0 なら全部)
- threads: スレッド数
- count_only: true なら回さず、組の数と所ごとの候補だけ返す
読み込んだ系のガラス・レンズカタログのフォルダを使う。同じプロセスからは swap_progress で進み具合を読み、
swap_cancel で止められる
swap の params: 探索の設定(--spec の JSON と同じ形)、別のプロジェクト project(省けば読み込んだもの)、
返す組の数 top(50、0 は全部)、スレッド数、組の数だけ数える count_only
Fields§
§spec: Value§project: Option<Value>§top: Option<usize>§threads: Option<usize>§count_only: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for SwapReq
impl<'de> Deserialize<'de> for SwapReq
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
impl StructuralPartialEq for SwapReq
Auto Trait Implementations§
impl Freeze for SwapReq
impl RefUnwindSafe for SwapReq
impl Send for SwapReq
impl Sync for SwapReq
impl Unpin for SwapReq
impl UnsafeUnpin for SwapReq
impl UnwindSafe for SwapReq
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