pub struct AttributeEntry { /* private fields */ }Expand description
Represents a single attribute on a virtual DOM node.
Combines an attribute name with its corresponding value.
Implementations§
Source§impl AttributeEntry
impl AttributeEntry
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_value(&self) -> &AttributeValue
pub fn get_mut_value(&mut self) -> &mut AttributeValue
pub fn set_value(&mut self, val: AttributeValue) -> &mut Self
Source§impl AttributeEntry
impl AttributeEntry
pub fn new(name: String, value: AttributeValue) -> Self
Trait Implementations§
Source§impl Clone for AttributeEntry
impl Clone for AttributeEntry
Source§fn clone(&self) -> AttributeEntry
fn clone(&self) -> AttributeEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AttributeEntry
impl !RefUnwindSafe for AttributeEntry
impl !Send for AttributeEntry
impl !Sync for AttributeEntry
impl Unpin for AttributeEntry
impl UnsafeUnpin for AttributeEntry
impl !UnwindSafe for AttributeEntry
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