[][src]Enum augdom::Document

pub enum Document {
    Concrete(Document),
    Virtual {
        head: Rc<VirtNode>,
        body: Rc<VirtNode>,
    },
}

The current document.

Variants

Concrete(Document)

A handle to a concrete document.

Virtual

A virtual environment's document.

Fields of Virtual

head: Rc<VirtNode>

The virtual document's head.

body: Rc<VirtNode>

The virtual document's body.

Implementations

impl Document[src]

pub fn new_virtual() -> Self[src]

Create a new document for virtual rendering, inside or outside of the browser.

pub fn head(&self) -> Node[src]

Return this document's head.

pub fn body(&self) -> Node[src]

Return this document's body.

pub fn active_element(&self) -> Option<Node>[src]

Returns the currently focused element, if any.

pub fn create_element(&self, ty: &str) -> Node[src]

Create a new element in this document.

pub fn create_text_node(&self, contents: &str) -> Node[src]

Create a new text node in this document.

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

Auto Trait Implementations

impl !RefUnwindSafe for Document

impl !Send for Document

impl !Sync for Document

impl Unpin for Document

impl !UnwindSafe for Document

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsContext for T where
    T: Debug + 'static, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.