pub enum Value {
Bool(bool),
Num(f64),
Txt(String),
}Expand description
Possible argument values
Variants§
Implementations§
Source§impl Value
impl Value
Sourcepub fn parse_as_bool(input_val: &str) -> Result<Self, ParseBoolError>
pub fn parse_as_bool(input_val: &str) -> Result<Self, ParseBoolError>
Parse str as bool Val
Sourcepub fn parse_as_num(input_val: &str) -> Result<Self, ParseFloatError>
pub fn parse_as_num(input_val: &str) -> Result<Self, ParseFloatError>
Parse str as num Val
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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