pub enum Value {
Empty,
String(String),
I64(i64),
F64(f64),
Bool(bool),
}
Expand description
Represents a setting value
Variants§
Empty
Intentionally empty value
String(String)
String value, can be any number of lines
I64(i64)
Int value
F64(f64)
Float value
Bool(bool)
Bool value
Implementations§
Source§impl Value
impl Value
Sourcepub const fn type_as_string(&self) -> &'static str
pub const fn type_as_string(&self) -> &'static str
Returns “Empty”, “String”, “Int”, “Float”, or “Bool” according to enum state
Sourcepub const fn type_as_singular_string(&self) -> &'static str
pub const fn type_as_singular_string(&self) -> &'static str
Returns “an Empty”, “a String”, “an Int”, “a Float”, or “a Bool” according to enum state
Trait Implementations§
Source§impl PartialOrd for Value
impl PartialOrd for Value
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 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