[−]Struct xterm_js_sys::xterm::ViewportRangePosition
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]
Trait Implementations
impl Clone for ViewportRangePosition
fn clone(&self) -> ViewportRangePosition
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ViewportRangePosition
impl Debug for ViewportRangePosition
impl Eq for ViewportRangePosition
impl From<ViewportRangePosition> for JsValue
[src]
fn from(value: ViewportRangePosition) -> Self
[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
unsafe fn from_abi(js: u32) -> Self
[src]
impl IntoWasmAbi for ViewportRangePosition
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> u32
[src]
impl OptionFromWasmAbi for ViewportRangePosition
[src]
impl OptionIntoWasmAbi for ViewportRangePosition
[src]
impl PartialEq<ViewportRangePosition> for ViewportRangePosition
fn eq(&self, other: &ViewportRangePosition) -> bool
fn ne(&self, other: &ViewportRangePosition) -> bool
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
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl RefMutFromWasmAbi for ViewportRangePosition
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, ViewportRangePosition>
Same as RefFromWasmAbi::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,