Skip to main content

ScriptDocumentBackend

Trait ScriptDocumentBackend 

Source
pub trait ScriptDocumentBackend: Document + Sized {
    // Required methods
    fn from_html(html: Arc<str>, config: DocumentConfig) -> Result<Self, String>;
    fn execute_scripts(&mut self) -> Result<(), String>;
}
Expand description

A script-capable document backend constructible from HTML.

Required Methods§

Source

fn from_html(html: Arc<str>, config: DocumentConfig) -> Result<Self, String>

Source

fn execute_scripts(&mut self) -> Result<(), String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<G, H> ScriptDocumentBackend for BoundScriptDocument<G, H>
where G: TypedNativeGuest, H: NativeHost<Guest = G> + 'static,