pub enum DefaultValue {
Bool(bool),
Int(i32),
Float(f32),
String(String),
StringArray(Vec<String>),
Null,
HashMap(HashMap<String, String>),
}Expand description
A default value that can be stored in UserDefaults.
Variants§
Bool(bool)
Int(i32)
Float(f32)
String(String)
StringArray(Vec<String>)
Null
HashMap(HashMap<String, String>)
Auto Trait Implementations§
impl Freeze for DefaultValue
impl RefUnwindSafe for DefaultValue
impl Send for DefaultValue
impl Sync for DefaultValue
impl Unpin for DefaultValue
impl UnwindSafe for DefaultValue
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