pub struct NodeRef(/* private fields */);
Trait Implementations§
Source§impl Node for NodeRef
impl Node for NodeRef
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 NodeRef
Auto Trait Implementations§
impl Freeze for NodeRef
impl !RefUnwindSafe for NodeRef
impl !Send for NodeRef
impl !Sync for NodeRef
impl Unpin for NodeRef
impl !UnwindSafe for NodeRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.