[][src]Struct xterm_js_sys::ext::disposable::DisposableWrapper

pub struct DisposableWrapper<D: XtermDisposable> {
    inner: Option<D>,
}
This is supported on feature="ext" only.

A wrapper for Disposable that calls dispose on Drop.

Fields

inner: Option<D>
This is supported on feature="ext" only.

The actual Disposable instance that's being wrapped.

Implementations

impl<D: XtermDisposable> DisposableWrapper<D>[src]

pub fn manually_dispose(self) -> D[src]

This is supported on feature="ext" only.

Pulls the inner XtermDisposable implementation (D) out of the wrapper, making it so that dispose is not called on Drop.

Trait Implementations

impl<D: Clone + XtermDisposable> Clone for DisposableWrapper<D>[src]

impl<D: Debug + XtermDisposable> Debug for DisposableWrapper<D>[src]

impl<D: XtermDisposable + Default> Default for DisposableWrapper<D>[src]

impl<D: XtermDisposable> Deref for DisposableWrapper<D>[src]

type Target = D

The resulting type after dereferencing.

impl<D: XtermDisposable> DerefMut for DisposableWrapper<D>[src]

impl<D: XtermDisposable> Drop for DisposableWrapper<D>[src]

impl<D: Eq + XtermDisposable> Eq for DisposableWrapper<D>[src]

impl<D: XtermDisposable> From<D> for DisposableWrapper<D>[src]

impl<D: Hash + XtermDisposable> Hash for DisposableWrapper<D>[src]

impl<D: Ord + XtermDisposable> Ord for DisposableWrapper<D>[src]

impl<D: PartialEq + XtermDisposable> PartialEq<DisposableWrapper<D>> for DisposableWrapper<D>[src]

impl<D: PartialOrd + XtermDisposable> PartialOrd<DisposableWrapper<D>> for DisposableWrapper<D>[src]

impl<D: XtermDisposable> StructuralEq for DisposableWrapper<D>[src]

impl<D: XtermDisposable> StructuralPartialEq for DisposableWrapper<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for DisposableWrapper<D> where
    D: RefUnwindSafe

impl<D> Send for DisposableWrapper<D> where
    D: Send

impl<D> Sync for DisposableWrapper<D> where
    D: Sync

impl<D> Unpin for DisposableWrapper<D> where
    D: Unpin

impl<D> UnwindSafe for DisposableWrapper<D> where
    D: UnwindSafe

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<!> for T[src]

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

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

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.