[][src]Trait arwa::Document

pub trait Document: AsRef<Document> {
    fn body(&self) -> Option<HtmlBodyElement> { ... }
fn set_body(&self, body: Option<&HtmlBodyElement>) { ... }
fn character_set(&self) -> String { ... }
fn child_elements(&self) -> DocumentChildElements { ... }
fn dir(&self) -> TextDirectionality { ... }
fn set_dir(&self, dir: TextDirectionality) { ... }
fn doctype(&self) -> Option<DocumentType> { ... }
fn document_element(&self) -> Option<GenericElement> { ... }
fn document_uri(&self) -> String { ... }
fn forms(&self) -> DocumentForms { ... }
fn fullscreen_enabled(&self) -> bool { ... }
fn has_focus(&self) -> bool { ... }
fn head(&self) -> Option<HtmlHeadElement> { ... }
fn hidden(&self) -> bool { ... }
fn images(&self) -> DocumentImages { ... }
fn last_modified(&self) -> String { ... }
fn links(&self) -> DocumentLinks { ... }
fn location(&self) -> Option<Location> { ... }
fn referrer(&self) -> String { ... }
fn title(&self) -> String { ... }
fn set_title(&self, title: &str) { ... }
fn on_fullscreen_change(&self) -> OnFullscreenChange { ... }
fn on_fullscreen_error(&self) -> OnFullscreenError { ... }
fn on_ready_state_change(&self) -> OnReadyStateChange { ... }
fn on_visibility_change(&self) -> OnVisibilityChange { ... }
fn adopt_node<T>(&self, node: &T) -> Result<GenericNode, AdoptNodeError>
    where
        T: Node
, { ... }
fn import_node<T>(&self, node: &T) -> Result<GenericNode, NotSupportedError>
    where
        T: Node
, { ... }
fn import_node_deep<T>(
        &self,
        node: &T
    ) -> Result<GenericNode, NotSupportedError>
    where
        T: Node
, { ... }
fn query_id(&self, id: &str) -> Option<GenericElement> { ... }
fn query_selector_first(
        &self,
        selector: &str
    ) -> Result<Option<GenericElement>, SyntaxError> { ... }
fn query_selector_all(
        &self,
        selector: &str
    ) -> Result<QuerySelectorAll, SyntaxError> { ... }
fn enable_style_sheets_for_set(&self, set_name: Option<&str>) { ... }
fn create_document_fragment(&self) -> DocumentFragment { ... }
fn element_from_point(&self, x: f32, y: f32) -> Option<GenericElement> { ... } }

Provided methods

fn body(&self) -> Option<HtmlBodyElement>

fn set_body(&self, body: Option<&HtmlBodyElement>)

fn character_set(&self) -> String

fn child_elements(&self) -> DocumentChildElements

fn dir(&self) -> TextDirectionality

fn set_dir(&self, dir: TextDirectionality)

fn doctype(&self) -> Option<DocumentType>

fn document_element(&self) -> Option<GenericElement>

fn document_uri(&self) -> String

fn forms(&self) -> DocumentForms

fn fullscreen_enabled(&self) -> bool

fn has_focus(&self) -> bool

fn head(&self) -> Option<HtmlHeadElement>

fn hidden(&self) -> bool

fn images(&self) -> DocumentImages

fn last_modified(&self) -> String

fn location(&self) -> Option<Location>

fn referrer(&self) -> String

fn title(&self) -> String

fn set_title(&self, title: &str)

fn on_fullscreen_change(&self) -> OnFullscreenChange

fn on_fullscreen_error(&self) -> OnFullscreenError

fn on_ready_state_change(&self) -> OnReadyStateChange

fn on_visibility_change(&self) -> OnVisibilityChange

fn adopt_node<T>(&self, node: &T) -> Result<GenericNode, AdoptNodeError> where
    T: Node

fn import_node<T>(&self, node: &T) -> Result<GenericNode, NotSupportedError> where
    T: Node

fn import_node_deep<T>(
    &self,
    node: &T
) -> Result<GenericNode, NotSupportedError> where
    T: Node

fn query_id(&self, id: &str) -> Option<GenericElement>

fn query_selector_first(
    &self,
    selector: &str
) -> Result<Option<GenericElement>, SyntaxError>

fn query_selector_all(
    &self,
    selector: &str
) -> Result<QuerySelectorAll, SyntaxError>

fn enable_style_sheets_for_set(&self, set_name: Option<&str>)

fn create_document_fragment(&self) -> DocumentFragment

fn element_from_point(&self, x: f32, y: f32) -> Option<GenericElement>

Loading content...

Implementors

impl Document for HtmlDocument[src]

impl Document for GenericDocument[src]

Loading content...