[]Struct xterm_js_sys::xterm::FunctionIdentifier

pub struct FunctionIdentifier {
    pub(super) prefix: Option<Str>,
    pub(super) intermediates: Option<Str>,
    pub(super) final_byte: Str,
}

Data type to register a CSI, DCS, or ESC callback in the parser in the form:

with these rules/restrictions:

For custom sequences make sure to read ECMA-48 and the resources at vt100.net to not clash with existing sequences or reserved address space. General recommendations:

Notes:

(This is really an interface, but we just go and define our own type that satisfies the interface.)

Fields

prefix: Option<Str>

Optional prefix byte; must be in range \x3c .. \x3f. Usable in CSI and DCS.

intermediates: Option<Str>

Optional intermediate bytes; must be in range \x20 .. \x2f. Usable in CSI, DCS, and ESC.

final_byte: Str

Final byte; must be in range \x40 .. \x7e for CSI and DCS, \x30 .. \x7E for ESC.

Implementations

impl FunctionIdentifier[src]

#[must_use]pub const fn new(
    prefix: Option<Str>,
    intermediates: Option<Str>,
    final_byte: Str
) -> Self
[src]

Constructor.

impl FunctionIdentifier

#[must_use]pub fn prefix(&self) -> Option<Str>[src]

Optional prefix byte; must be in range \x3c .. \x3f. Usable in CSI and DCS. Getter.

pub fn set_prefix(&mut self, prefix: Option<Str>)[src]

Optional prefix byte; must be in range \x3c .. \x3f. Usable in CSI and DCS. Setter.

#[must_use]pub fn intermediates(&self) -> Option<Str>[src]

Optional intermediate bytes; must be in range \x20 .. \x2f. Usable in CSI, DCS, and ESC. Getter.

pub fn set_intermediates(&mut self, intermediates: Option<Str>)[src]

Optional intermediate bytes; must be in range \x20 .. \x2f. Usable in CSI, DCS, and ESC. Setter.

#[must_use]pub fn final_byte(&self) -> Str[src]

Final byte; must be in range \x40 .. \x7e for CSI and DCS, \x30 .. \x7E for ESC. Getter.

pub fn set_final_byte(&mut self, final_byte: Str)[src]

Final byte; must be in range \x40 .. \x7e for CSI and DCS, \x30 .. \x7E for ESC. Setter.

Trait Implementations

impl Clone for FunctionIdentifier

impl Debug for FunctionIdentifier

impl From<FunctionIdentifier> for JsValue[src]

impl FromWasmAbi for FunctionIdentifier[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for FunctionIdentifier[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for FunctionIdentifier[src]

impl OptionIntoWasmAbi for FunctionIdentifier[src]

impl RefFromWasmAbi for FunctionIdentifier[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, FunctionIdentifier>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl RefMutFromWasmAbi for FunctionIdentifier[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, FunctionIdentifier>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for FunctionIdentifier[src]

Auto Trait Implementations

impl RefUnwindSafe for FunctionIdentifier

impl Send for FunctionIdentifier

impl Sync for FunctionIdentifier

impl Unpin for FunctionIdentifier

impl UnwindSafe for FunctionIdentifier

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.