pub struct DomNode(/* private fields */);Implementations§
Trait Implementations§
Source§impl Node for DomNode
impl Node for DomNode
fn element(namespace: Option<&str>, name: &str) -> Self
fn text() -> Self
fn fragment() -> Self
fn raw() -> Self
fn ty(&self) -> NodeType
fn parent(&self) -> Option<Self>
fn children(&self) -> Vec<Self>
fn next_sibling(&self) -> Option<Self>
fn insert(&self, child: &Self, before: Option<&Self>)
fn remove(&self, child: &Self)
fn set_text(&self, content: &str)
fn attr(&self, name: &str) -> Option<String>
fn set_attr(&self, name: &str, value: &str)
fn remove_attr(&self, name: &str)
fn event<E, F>(&self, event: &E, f: F)
impl Eq for DomNode
Auto Trait Implementations§
impl Freeze for DomNode
impl !RefUnwindSafe for DomNode
impl !Send for DomNode
impl !Sync for DomNode
impl Unpin for DomNode
impl !UnwindSafe for DomNode
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