pub struct DomStringMapMut<'a, Ext: 'static> { /* private fields */ }Expand description
Write-side view of el.dataset. Borrows the element via
NodeMut; mutations route through set_attribute /
remove_attribute so the existing attribute-change mutation
observer fires.
Implementations§
Source§impl<'a, Ext: 'static> DomStringMapMut<'a, Ext>
impl<'a, Ext: 'static> DomStringMapMut<'a, Ext>
Sourcepub fn new(node: NodeMut<'a, Ext>) -> Self
pub fn new(node: NodeMut<'a, Ext>) -> Self
Construct from a borrowed NodeMut. Used by
NodeMut::dataset_mut() (M4b step 19) and tests.
Auto Trait Implementations§
impl<'a, Ext> !RefUnwindSafe for DomStringMapMut<'a, Ext>
impl<'a, Ext> !Send for DomStringMapMut<'a, Ext>
impl<'a, Ext> !Sync for DomStringMapMut<'a, Ext>
impl<'a, Ext> !UnwindSafe for DomStringMapMut<'a, Ext>
impl<'a, Ext> Freeze for DomStringMapMut<'a, Ext>
impl<'a, Ext> Unpin for DomStringMapMut<'a, Ext>
impl<'a, Ext> UnsafeUnpin for DomStringMapMut<'a, Ext>where
NodeMut<'a, Ext>: UnsafeUnpin,
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