pub enum ParamTy {
Count,
Int,
Num,
Flag,
Str,
Choice,
Nums,
Path,
Paths,
Json,
}Expand description
設定の項目の型(GUI の欄・CLI の旗の受け方)
Variants§
Count
0 以上の整数
Int
整数
Num
実数
Flag
旗(真偽)
Str
文字列
Choice
決まった文字列のどれか(Param::choices)
Nums
数の並び(CLI はカンマ区切り)
Path
ファイルのパス
Paths
ファイルのパスの並び(CLI は旗を繰り返す)
Json
JSON のオブジェクト(センサの設定など。スキーマの x-kind = "json"。CLI は JSON の文字列、GUI は項目の欄)
Implementations§
Trait Implementations§
impl Copy for ParamTy
impl Eq for ParamTy
impl StructuralPartialEq for ParamTy
Auto Trait Implementations§
impl Freeze for ParamTy
impl RefUnwindSafe for ParamTy
impl Send for ParamTy
impl Sync for ParamTy
impl Unpin for ParamTy
impl UnsafeUnpin for ParamTy
impl UnwindSafe for ParamTy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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