[−][src]Struct xterm_js_sys::ext::disposable::DisposableWrapper
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]
fn clone(&self) -> DisposableWrapper<D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<D: Ord + XtermDisposable> Ord for DisposableWrapper<D>
[src]
fn cmp(&self, other: &DisposableWrapper<D>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<D: PartialEq + XtermDisposable> PartialEq<DisposableWrapper<D>> for DisposableWrapper<D>
[src]
fn eq(&self, other: &DisposableWrapper<D>) -> bool
[src]
fn ne(&self, other: &DisposableWrapper<D>) -> bool
[src]
impl<D: PartialOrd + XtermDisposable> PartialOrd<DisposableWrapper<D>> for DisposableWrapper<D>
[src]
fn partial_cmp(&self, other: &DisposableWrapper<D>) -> Option<Ordering>
[src]
fn lt(&self, other: &DisposableWrapper<D>) -> bool
[src]
fn le(&self, other: &DisposableWrapper<D>) -> bool
[src]
fn gt(&self, other: &DisposableWrapper<D>) -> bool
[src]
fn ge(&self, other: &DisposableWrapper<D>) -> bool
[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,
D: RefUnwindSafe,
impl<D> Send for DisposableWrapper<D> where
D: Send,
D: Send,
impl<D> Sync for DisposableWrapper<D> where
D: Sync,
D: Sync,
impl<D> Unpin for DisposableWrapper<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for DisposableWrapper<D> where
D: UnwindSafe,
D: UnwindSafe,
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<!> for 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> 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>,