[−][src]Struct xterm_js_sys::ext::disposable::NoOpDispose
This is supported on
feature="ext"
only.A type that satisfies the Disposable
interface and does nothing on
dispose
.
Can be used wherever an IDisposable
is required.
Fields
obj: Object
This is supported on
feature="ext"
only.JavaScript object that just has a no-op dispose
function.
Implementations
impl NoOpDispose
[src][−]
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 NoOpDispose
[src][+]
impl Clone for NoOpDispose
[src][+]
impl Debug for NoOpDispose
[src][+]
impl Default for NoOpDispose
[src][+]
impl Deref for NoOpDispose
[src][+]
impl From<NoOpDispose> for JsValue
[src][+]
impl FromWasmAbi for NoOpDispose
[src][+]
impl IntoWasmAbi for NoOpDispose
[src][+]
impl OptionFromWasmAbi for NoOpDispose
[src][+]
impl OptionIntoWasmAbi for NoOpDispose
[src][+]
impl RefFromWasmAbi for NoOpDispose
[src][+]
impl RefMutFromWasmAbi for NoOpDispose
[src][+]
impl WasmDescribe for NoOpDispose
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for NoOpDispose
impl !Send for NoOpDispose
impl !Sync for NoOpDispose
impl Unpin for NoOpDispose
impl UnwindSafe for NoOpDispose
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>,