[]Struct xterm_js_sys::xterm::ViewportRangePosition

pub struct ViewportRangePosition {
    pub x: u16,
    pub y: u16,
}

An object representing a cell position within the viewport of the terminal.

(This is really an interface but because it's only ever produced by the user we just go and define our own type that satisfies the interface).

Fields

x: u16

The x position of the cell.

This is a 0-based index that refers to the space in between columns, not the column itself. Index 0 refers to the left side of the viewport, index Terminal::cols refers to the right side of the viewport. This can be thought of as how a cursor is positioned in a text editor.

y: u16

The y position of the cell.

This is a 0-based index that refers to a specific row.

Implementations

impl ViewportRangePosition[src]

#[must_use]pub const fn new(x: u16, y: u16) -> Self[src]

Constructor.

Trait Implementations

impl Clone for ViewportRangePosition

impl Copy for ViewportRangePosition

impl Debug for ViewportRangePosition

impl Eq for ViewportRangePosition

impl From<ViewportRangePosition> for JsValue[src]

impl FromWasmAbi for ViewportRangePosition[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 ViewportRangePosition[src]

type Abi = u32

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

impl OptionFromWasmAbi for ViewportRangePosition[src]

impl OptionIntoWasmAbi for ViewportRangePosition[src]

impl PartialEq<ViewportRangePosition> for ViewportRangePosition

impl RefFromWasmAbi for ViewportRangePosition[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, ViewportRangePosition>

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 ViewportRangePosition[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, ViewportRangePosition>

Same as RefFromWasmAbi::Anchor

impl StructuralEq for ViewportRangePosition

impl StructuralPartialEq for ViewportRangePosition

impl WasmDescribe for ViewportRangePosition[src]

Auto Trait Implementations

impl RefUnwindSafe for ViewportRangePosition

impl Send for ViewportRangePosition

impl Sync for ViewportRangePosition

impl Unpin for ViewportRangePosition

impl UnwindSafe for ViewportRangePosition

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.