pub struct StringVar { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Var for StringVar
impl Var for StringVar
Source§fn value_from_str(&self, s: &str) -> Result<Box<dyn Value>, InvalidValue>
fn value_from_str(&self, s: &str) -> Result<Box<dyn Value>, InvalidValue>
Convert a &str to this Var’s corresponding value
Source§fn validate_val_type(&self, val: &Box<dyn Value>) -> Result<(), InvalidValue>
fn validate_val_type(&self, val: &Box<dyn Value>) -> Result<(), InvalidValue>
Validate the value type corresponds to this Var
Auto Trait Implementations§
impl Freeze for StringVar
impl RefUnwindSafe for StringVar
impl Send for StringVar
impl Sync for StringVar
impl Unpin for StringVar
impl UnwindSafe for StringVar
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