[][src]Trait xterm_js_sys::ext::addon::XtermAddon

pub trait XtermAddon where
    Self: XtermDisposable
{ fn activate(&self, terminal: Terminal); fn into_js_by_ref(&self) -> TerminalAddon
    where
        Self: Clone + 'static
, { ... }
fn into_js(self) -> TerminalAddon
    where
        Self: Sized + 'static
, { ... }
fn into_js_inner(&'static self) -> Object
    where
        Self: 'static
, { ... } }
This is supported on feature="ext" only.

Rust version of the TerminalAddon interface.

See the "mirroring interfaces" section of the xterm module docs for more information.

Required methods

fn activate(&self, terminal: Terminal)

This is supported on feature="ext" only.

This is called when the addon is activated.

Dual of TerminalAddon::activate.

Loading content...

Provided methods

fn into_js_by_ref(&self) -> TerminalAddon where
    Self: Clone + 'static, 

This is supported on feature="ext" only.

fn into_js(self) -> TerminalAddon where
    Self: Sized + 'static, 

This is supported on feature="ext" only.

fn into_js_inner(&'static self) -> Object where
    Self: 'static, 

This is supported on feature="ext" only.

Internal version of into_js_by_ref that doesn't leak self.

Useful for trait/interface hierarchies.

Loading content...

Implementors

impl<X> XtermAddon for X where
    X: Clone + 'static,
    X: AsRef<Disposable>,
    X: AsRef<TerminalAddon>, 
[src]

This provides an impl of the XtermAddon Rust trait for all things that 'implement' the TerminalAddon JS interface the wasm-bindgen way.

See the "mirroring interfaces" section of the xterm module docs for more information.

fn activate(&self, terminal: Terminal)[src]

This is supported on feature="ext" only.

activate for types that implement the TerminalAddon interface.

fn into_js_by_ref(&self) -> TerminalAddon[src]

This is supported on feature="ext" only.

into_js_by_ref for types that implement the TerminalAddon interface.

This differs from the default impl in that it manages to avoid a Clone before effectively doing what into_js does.

fn into_js(self) -> TerminalAddon[src]

This is supported on feature="ext" only.

into_js for types that implement the TerminalAddon interface.

This differs from the default impl in that it manages to avoid "double wrapping" the methods in the interface (types that impl TerminalAddon the wasm-bindgen way already have a wrapped up Object they can hand us).

Loading content...