Enum augdom::Document[][src]

pub enum Document {
    Virtual {
        head: Rc<VirtNode>,
        body: Rc<VirtNode>,

The current document.



A handle to a concrete document.


A virtual environment’s document.

Fields of Virtual

head: Rc<VirtNode>

The virtual document’s head.

body: Rc<VirtNode>

The virtual document’s body.


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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.