Enum percy_dom::AttributeValue
source · pub enum AttributeValue {
String(String),
Bool(bool),
}
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§fn from(s: &String) -> AttributeValue
fn from(s: &String) -> AttributeValue
Converts to this type from the input type.
source§impl From<&bool> for AttributeValue
impl From<&bool> for AttributeValue
source§fn from(b: &bool) -> AttributeValue
fn from(b: &bool) -> AttributeValue
Converts to this type from the input type.
source§impl From<&f32> for AttributeValue
impl From<&f32> for AttributeValue
source§fn from(val: &f32) -> AttributeValue
fn from(val: &f32) -> AttributeValue
Converts to this type from the input type.
source§impl From<&f64> for AttributeValue
impl From<&f64> for AttributeValue
source§fn from(val: &f64) -> AttributeValue
fn from(val: &f64) -> AttributeValue
Converts to this type from the input type.
source§impl From<&i128> for AttributeValue
impl From<&i128> for AttributeValue
source§fn from(val: &i128) -> AttributeValue
fn from(val: &i128) -> AttributeValue
Converts to this type from the input type.
source§impl From<&i16> for AttributeValue
impl From<&i16> for AttributeValue
source§fn from(val: &i16) -> AttributeValue
fn from(val: &i16) -> AttributeValue
Converts to this type from the input type.
source§impl From<&i32> for AttributeValue
impl From<&i32> for AttributeValue
source§fn from(val: &i32) -> AttributeValue
fn from(val: &i32) -> AttributeValue
Converts to this type from the input type.
source§impl From<&i64> for AttributeValue
impl From<&i64> for AttributeValue
source§fn from(val: &i64) -> AttributeValue
fn from(val: &i64) -> AttributeValue
Converts to this type from the input type.
source§impl From<&i8> for AttributeValue
impl From<&i8> for AttributeValue
source§fn from(val: &i8) -> AttributeValue
fn from(val: &i8) -> AttributeValue
Converts to this type from the input type.
source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
source§fn from(s: &str) -> AttributeValue
fn from(s: &str) -> AttributeValue
Converts to this type from the input type.
source§impl From<&u128> for AttributeValue
impl From<&u128> for AttributeValue
source§fn from(val: &u128) -> AttributeValue
fn from(val: &u128) -> AttributeValue
Converts to this type from the input type.
source§impl From<&u16> for AttributeValue
impl From<&u16> for AttributeValue
source§fn from(val: &u16) -> AttributeValue
fn from(val: &u16) -> AttributeValue
Converts to this type from the input type.
source§impl From<&u32> for AttributeValue
impl From<&u32> for AttributeValue
source§fn from(val: &u32) -> AttributeValue
fn from(val: &u32) -> AttributeValue
Converts to this type from the input type.
source§impl From<&u64> for AttributeValue
impl From<&u64> for AttributeValue
source§fn from(val: &u64) -> AttributeValue
fn from(val: &u64) -> AttributeValue
Converts to this type from the input type.
source§impl From<&u8> for AttributeValue
impl From<&u8> for AttributeValue
source§fn from(val: &u8) -> AttributeValue
fn from(val: &u8) -> AttributeValue
Converts to this type from the input type.
source§impl<S, const N: usize> From<[S; N]> for AttributeValuewhere
S: AsRef<str>,
impl<S, const N: usize> From<[S; N]> for AttributeValuewhere S: AsRef<str>,
source§fn from(vals: [S; N]) -> AttributeValue
fn from(vals: [S; N]) -> AttributeValue
Converts to this type from the input type.
source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
source§fn from(s: String) -> AttributeValue
fn from(s: String) -> AttributeValue
Converts to this type from the input type.
source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
source§fn from(b: bool) -> AttributeValue
fn from(b: bool) -> AttributeValue
Converts to this type from the input type.
source§impl From<f32> for AttributeValue
impl From<f32> for AttributeValue
source§fn from(val: f32) -> AttributeValue
fn from(val: f32) -> AttributeValue
Converts to this type from the input type.
source§impl From<f64> for AttributeValue
impl From<f64> for AttributeValue
source§fn from(val: f64) -> AttributeValue
fn from(val: f64) -> AttributeValue
Converts to this type from the input type.
source§impl From<i128> for AttributeValue
impl From<i128> for AttributeValue
source§fn from(val: i128) -> AttributeValue
fn from(val: i128) -> AttributeValue
Converts to this type from the input type.
source§impl From<i16> for AttributeValue
impl From<i16> for AttributeValue
source§fn from(val: i16) -> AttributeValue
fn from(val: i16) -> AttributeValue
Converts to this type from the input type.
source§impl From<i32> for AttributeValue
impl From<i32> for AttributeValue
source§fn from(val: i32) -> AttributeValue
fn from(val: i32) -> AttributeValue
Converts to this type from the input type.
source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
source§fn from(val: i64) -> AttributeValue
fn from(val: i64) -> AttributeValue
Converts to this type from the input type.
source§impl From<i8> for AttributeValue
impl From<i8> for AttributeValue
source§fn from(val: i8) -> AttributeValue
fn from(val: i8) -> AttributeValue
Converts to this type from the input type.
source§impl From<u128> for AttributeValue
impl From<u128> for AttributeValue
source§fn from(val: u128) -> AttributeValue
fn from(val: u128) -> AttributeValue
Converts to this type from the input type.
source§impl From<u16> for AttributeValue
impl From<u16> for AttributeValue
source§fn from(val: u16) -> AttributeValue
fn from(val: u16) -> AttributeValue
Converts to this type from the input type.
source§impl From<u32> for AttributeValue
impl From<u32> for AttributeValue
source§fn from(val: u32) -> AttributeValue
fn from(val: u32) -> AttributeValue
Converts to this type from the input type.
source§impl From<u64> for AttributeValue
impl From<u64> for AttributeValue
source§fn from(val: u64) -> AttributeValue
fn from(val: u64) -> AttributeValue
Converts to this type from the input type.
source§impl From<u8> for AttributeValue
impl From<u8> for AttributeValue
source§fn from(val: u8) -> AttributeValue
fn from(val: u8) -> AttributeValue
Converts to this type from the input type.
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 ==
.impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
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