Enum virtual_node::AttributeValue
source · Expand description
The value associated with an element’s attribute.
For , the element attribute value would be
ElementAttributeValue::Bool(true)
Variants§
String(String)
A string attribute such as value=“My text input contents”
Bool(bool)
A boolean attribute disabled=true
Implementations§
Trait Implementations§
source§impl Clone for AttributeValue
impl Clone for AttributeValue
source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
source§impl Display for AttributeValue
impl Display for AttributeValue
source§impl From<&String> for AttributeValue
impl From<&String> for AttributeValue
source§impl From<&bool> for AttributeValue
impl From<&bool> for AttributeValue
source§impl From<&f32> for AttributeValue
impl From<&f32> for AttributeValue
source§impl From<&f64> for AttributeValue
impl From<&f64> for AttributeValue
source§impl From<&i128> for AttributeValue
impl From<&i128> for AttributeValue
source§impl From<&i16> for AttributeValue
impl From<&i16> for AttributeValue
source§impl From<&i32> for AttributeValue
impl From<&i32> for AttributeValue
source§impl From<&i64> for AttributeValue
impl From<&i64> for AttributeValue
source§impl From<&i8> for AttributeValue
impl From<&i8> for AttributeValue
source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
source§impl From<&u128> for AttributeValue
impl From<&u128> for AttributeValue
source§impl From<&u16> for AttributeValue
impl From<&u16> for AttributeValue
source§impl From<&u32> for AttributeValue
impl From<&u32> for AttributeValue
source§impl From<&u64> for AttributeValue
impl From<&u64> for AttributeValue
source§impl From<&u8> for AttributeValue
impl From<&u8> for AttributeValue
source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
source§impl From<f32> for AttributeValue
impl From<f32> for AttributeValue
source§impl From<f64> for AttributeValue
impl From<f64> for AttributeValue
source§impl From<i128> for AttributeValue
impl From<i128> for AttributeValue
source§impl From<i16> for AttributeValue
impl From<i16> for AttributeValue
source§impl From<i32> for AttributeValue
impl From<i32> for AttributeValue
source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
source§impl From<i8> for AttributeValue
impl From<i8> for AttributeValue
source§impl From<u128> for AttributeValue
impl From<u128> for AttributeValue
source§impl From<u16> for AttributeValue
impl From<u16> for AttributeValue
source§impl From<u32> for AttributeValue
impl From<u32> for AttributeValue
source§impl From<u64> for AttributeValue
impl From<u64> for AttributeValue
source§impl From<u8> for AttributeValue
impl From<u8> for AttributeValue
source§impl Into<JsValue> for AttributeValue
impl Into<JsValue> for AttributeValue
source§impl PartialEq<AttributeValue> for AttributeValue
impl PartialEq<AttributeValue> for AttributeValue
source§fn eq(&self, other: &AttributeValue) -> bool
fn eq(&self, other: &AttributeValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.