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
impl StructuralPartialEq for StateValue
Auto Trait Implementations§
impl Freeze for StateValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more