Enum tuirealm::StateValue
source · pub enum StateValue {
}
Expand description
StateValue describes the value contained in a State
Variants§
None
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
Usize(usize)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
Isize(isize)
F64(f64)
String(String)
Color(Color)
Email(Email)
PhoneNumber(PhoneNumber)
Implementations§
source§impl StateValue
impl StateValue
pub fn unwrap_bool(self) -> bool
pub fn unwrap_u8(self) -> u8
pub fn unwrap_u16(self) -> u16
pub fn unwrap_u32(self) -> u32
pub fn unwrap_u64(self) -> u64
pub fn unwrap_u128(self) -> u128
pub fn unwrap_usize(self) -> usize
pub fn unwrap_i8(self) -> i8
pub fn unwrap_i16(self) -> i16
pub fn unwrap_i32(self) -> i32
pub fn unwrap_i64(self) -> i64
pub fn unwrap_i128(self) -> i128
pub fn unwrap_isize(self) -> isize
pub fn unwrap_f64(self) -> f64
pub fn unwrap_string(self) -> String
pub fn unwrap_color(self) -> Color
pub fn unwrap_email(self) -> Email
pub fn unwrap_phone_number(self) -> PhoneNumber
Trait Implementations§
source§impl Clone for StateValue
impl Clone for StateValue
source§fn clone(&self) -> StateValue
fn clone(&self) -> StateValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StateValue
impl Debug for StateValue
source§impl PartialEq for StateValue
impl PartialEq for StateValue
source§fn eq(&self, other: &StateValue) -> bool
fn eq(&self, other: &StateValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StateValue
Auto Trait Implementations§
impl RefUnwindSafe for StateValue
impl Send for StateValue
impl Sync for StateValue
impl Unpin for StateValue
impl UnwindSafe for StateValue
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