pub enum SpecValue {
Num {
value: f64,
text: String,
},
Range {
lo: f64,
hi: f64,
text: String,
},
Text(String),
List(Vec<String>),
}Expand description
仕様の値(読み込みのときに 1 回だけ型を決める)
Variants§
Num
数(数として読める文字列も)。text は含むで比べるときの書いた形(小文字)
Range
範囲 [下限, 上限](下限 ≤ 上限に並べ直す)。text は書いた形
Text(String)
文字列(含むで比べる。小文字にしたもの)
List(Vec<String>)
範囲でない配列(要素のどれかが含めばよい。要素は小文字の文字列)
Implementations§
Trait Implementations§
impl StructuralPartialEq for SpecValue
Auto Trait Implementations§
impl Freeze for SpecValue
impl RefUnwindSafe for SpecValue
impl Send for SpecValue
impl Sync for SpecValue
impl Unpin for SpecValue
impl UnsafeUnpin for SpecValue
impl UnwindSafe for SpecValue
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