[−][src]Struct xterm_js_sys::xterm::Marker
Represents a specific line in the terminal that is tracked when scrollback is trimmed and lines are added or removed. This is a single line that may be part of a larger wrapped line.
(This is a duck-typed interface).
Fields
obj: Disposable
Implementations
impl Marker
[src][−]
impl Marker
[src][−]
pub fn is_disposed(&self) -> bool
[src][−]
Whether this marker is disposed.
impl Marker
[src][−]
pub fn line(&self) -> i32
[src][−]
The actual line index in the buffer at this point in time. This is set
to -1
if the marker has been disposed.
See get_line
(if the ext
feature is enabled) for a friendlier
version of this function (returns an Option
of an unsigned number).
impl Marker
[src][−]
pub fn get_line(&self) -> Option<u32>
[src][−]
feature="ext"
only.The actual line index in the buffer at this point in time.
Like line
, but returns an Option
instead of -1
.
Methods from Deref<Target = Disposable>
pub fn dispose(&self)
[src][−]
Disposes of the instance.
This can involve unregistering an event listener or cleaning up resources or anything else that should happen when an instance is disposed of.
Trait Implementations
impl AsRef<Disposable> for Marker
[src][+]
impl AsRef<JsValue> for Marker
[src][+]
impl AsRef<Marker> for Marker
[src][+]
impl Clone for Marker
[src][+]
impl Debug for Marker
[src][+]
impl Deref for Marker
[src][+]
impl From<JsValue> for Marker
[src][+]
impl From<Marker> for JsValue
[src][+]
impl From<Marker> for Disposable
[src][+]
impl FromWasmAbi for Marker
[src][+]
impl IntoWasmAbi for Marker
[src][+]
impl<'a> IntoWasmAbi for &'a Marker
[src][+]
impl JsCast for Marker
[src][+]
impl OptionFromWasmAbi for Marker
[src][+]
impl OptionIntoWasmAbi for Marker
[src][+]
impl<'a> OptionIntoWasmAbi for &'a Marker
[src][+]
impl RefFromWasmAbi for Marker
[src][+]
impl WasmDescribe for Marker
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for Marker
impl !Send for Marker
impl !Sync for Marker
impl Unpin for Marker
impl UnwindSafe for Marker
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<X> IntoJsInterface<Disposable> for X where
X: XtermDisposable + Clone + 'static,
[src][+]
X: XtermDisposable + Clone + 'static,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src][+]
T: IntoWasmAbi,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<X> XtermDisposable for X where
X: Clone + 'static + AsRef<Disposable>,
[src][+]
X: Clone + 'static + AsRef<Disposable>,