pub enum Value {
}
Expand description
Wraps different primitive variants used as values in html This is needed since html attributes can have different value types such as checked(bool), name(String), tab_index(i32)
Variants
Bool(bool)
bool value
Str(&'static str)
&’static str value
String(String)
String value
Vec(Vec<Value, Global>)
a vec of values
U8(u8)
u8 value
U16(u16)
u16 value
U32(u32)
u32 value
U64(u64)
u64 value
Usize(usize)
usize value
U128(u128)
u128 value
I8(i8)
i8 value
I16(i16)
i16 value
I32(i32)
i32 value
I64(i64)
i64 value
I128(i128)
i128 value
Isize(isize)
isize value
F32(f32)
f32 value
F64(f64)
f64 value
Implementations
Trait Implementations
impl<T, U, V, X, Z> From<(T, U, V, X, Z)> for Value where
T: Into<Value>,
U: Into<Value>,
V: Into<Value>,
X: Into<Value>,
Z: Into<Value>,
impl<T, U, V, X, Z> From<(T, U, V, X, Z)> for Value where
T: Into<Value>,
U: Into<Value>,
V: Into<Value>,
X: Into<Value>,
Z: Into<Value>,
impl<T, U, V, X> From<(T, U, V, X)> for Value where
T: Into<Value>,
U: Into<Value>,
V: Into<Value>,
X: Into<Value>,
impl<T, U, V, X> From<(T, U, V, X)> for Value where
T: Into<Value>,
U: Into<Value>,
V: Into<Value>,
X: Into<Value>,
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more