[][src]Trait xterm_js_sys::ext::unicode::XtermUnicodeVersionProvider

pub trait XtermUnicodeVersionProvider {
    fn version(&self) -> Str;
fn wcwidth(&self, codepoint: u32) -> WideCharacterWidth; fn into_js_by_ref(&self) -> UnicodeVersionProvider
    where
        Self: Clone + 'static
, { ... }
fn into_js(self) -> UnicodeVersionProvider
    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 UnicodeVersionProvider interface.

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

Required methods

fn version(&self) -> Str

This is supported on feature="ext" only.

Gets a string indicating the Unicode version provided.

Dual of UnicodeVersionProvider::version.

fn wcwidth(&self, codepoint: u32) -> WideCharacterWidth

This is supported on feature="ext" only.

Unicode version dependent wcwidth implementation.

Dual of UnicodeVersionProvider::wcwidth.

Loading content...

Provided methods

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

This is supported on feature="ext" only.

fn into_js(self) -> UnicodeVersionProvider 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> XtermUnicodeVersionProvider for X where
    X: Clone + 'static,
    X: AsRef<UnicodeVersionProvider>, 
[src]

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

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

fn version(&self) -> Str[src]

This is supported on feature="ext" only.

version for types that implement the UnicodeVersionProvider interface.

fn wcwidth(&self, codepoint: u32) -> WideCharacterWidth[src]

This is supported on feature="ext" only.

wcwidth for types that implement the UnicodeVersionProvider interface.

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

This is supported on feature="ext" only.

into_js_by_ref for types that implement the UnicodeVersionProvider 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) -> UnicodeVersionProvider[src]

This is supported on feature="ext" only.

into_js for types that implement the UnicodeVersionProvider interface.

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

Loading content...