pub enum BorrowedAttributeValue<'a> {
Text(&'a str),
Float(f64),
Int(i64),
Bool(bool),
Any(Ref<'a, dyn AnyValue>),
None,
}
Expand description
Any of the built-in values that the Dioxus VirtualDom supports as dynamic attributes on elements that are borrowed
These varients are used to communicate what the value of an attribute is that needs to be updated
Variants§
Text(&'a str)
Text attribute
Float(f64)
A float
Int(i64)
Signed integer
Bool(bool)
Boolean
Any(Ref<'a, dyn AnyValue>)
An arbitrary value that implements PartialEq and is static
None
A “none” value, resulting in the removal of an attribute from the dom
Trait Implementations§
source§impl Debug for BorrowedAttributeValue<'_>
impl Debug for BorrowedAttributeValue<'_>
source§impl<'de: 'a, 'a> Deserialize<'de> for BorrowedAttributeValue<'a>
impl<'de: 'a, 'a> Deserialize<'de> for BorrowedAttributeValue<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a AttributeValue<'a>> for BorrowedAttributeValue<'a>
impl<'a> From<&'a AttributeValue<'a>> for BorrowedAttributeValue<'a>
source§fn from(value: &'a AttributeValue<'a>) -> Self
fn from(value: &'a AttributeValue<'a>) -> Self
Converts to this type from the input type.
source§impl PartialEq<BorrowedAttributeValue<'_>> for BorrowedAttributeValue<'_>
impl PartialEq<BorrowedAttributeValue<'_>> for BorrowedAttributeValue<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BorrowedAttributeValue<'a>
impl<'a> !Send for BorrowedAttributeValue<'a>
impl<'a> !Sync for BorrowedAttributeValue<'a>
impl<'a> Unpin for BorrowedAttributeValue<'a>
impl<'a> !UnwindSafe for BorrowedAttributeValue<'a>
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