[−][src]Enum augdom::Node
A Node
in the augmented DOM.
Variants
Concrete(Node)
A handle to a concrete DOM node running in the browser.
A handle to a "virtual" DOM node, emulating the web in memory. While this implementation lacks many features, it can run on any target that Rust supports.
Implementations
impl Node
[src]
pub fn expect_virtual(&self) -> &Rc<VirtNode>
[src]
Returns a reference to a virtual node, panics if this is a concrete node.
impl Node
[src]
pub fn expect_concrete(&self) -> &Node
[src]
Returns a reference to a concrete DOM node, panics if this is a virtual node.
Trait Implementations
impl Clone for Node
[src]
impl Debug for Node
[src]
impl Display for Node
[src]
impl Dom for Node
[src]
type MutationRecord = MutationRecord
The type returned in batches by Dom::Observer
.
type Nodes = Vec<Self>
The type returned by query_selector_all
.
type Observer = MutationObserver
The type returned by observe
.
pub fn write_xml<W: Write>(&self, writer: &mut XmlWriter<W>)
[src]
pub fn first_child(&self) -> Option<Self>
[src]
pub fn append_child(&self, child: &Self)
[src]
pub fn next_sibling(&self) -> Option<Self>
[src]
pub fn remove_child(&self, to_remove: &Self) -> Option<Self>
[src]
pub fn replace_child(&self, new_child: &Self, existing: &Self)
[src]
pub fn get_attribute(&self, name: &str) -> Option<String>
[src]
pub fn set_attribute(&self, name: &str, value: &str)
[src]
pub fn remove_attribute(&self, name: &str)
[src]
pub fn get_inner_text(&self) -> String
[src]
pub fn dispatch<E: Event>(&self, event: E)
[src]
pub fn query_selector(&self, selectors: &str) -> Option<Self>
[src]
pub fn query_selector_all(&self, selectors: &str) -> Self::Nodes
[src]
pub fn observe_mutations(&self) -> Self::Observer
[src]
pub fn outer_html(&self) -> String
[src]
pub fn pretty_outer_html(&self, indent: usize) -> String
[src]
impl From<Element> for Node
[src]
impl From<HtmlElement> for Node
[src]
pub fn from(e: HtmlElement) -> Self
[src]
impl From<Node> for Node
[src]
impl From<Rc<VirtNode>> for Node
[src]
impl From<Text> for Node
[src]
impl PartialEq<Node> for Node
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl TargetExt for Node
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Node
[src]
impl !Send for Node
[src]
impl !Sync for Node
[src]
impl Unpin for Node
[src]
impl !UnwindSafe for Node
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsContext for T where
T: Debug + 'static,
[src]
T: Debug + 'static,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<N> Query for N where
N: Dom,
[src]
N: Dom,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,