pub struct WrappedWithData<T, D> { /* private fields */ }
Expand description
Dereferences to a Ruby value. Makes sure the underlying data is not dropped.
Trait Implementations
sourceimpl<T, D> AsRef<T> for WrappedWithData<T, D>
impl<T, D> AsRef<T> for WrappedWithData<T, D>
Auto Trait Implementations
impl<T, D> RefUnwindSafe for WrappedWithData<T, D> where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for WrappedWithData<T, D> where
D: Send,
T: Send,
impl<T, D> Sync for WrappedWithData<T, D> where
D: Sync,
T: Sync,
impl<T, D> Unpin for WrappedWithData<T, D> where
D: Unpin,
T: Unpin,
impl<T, D> UnwindSafe for WrappedWithData<T, D> where
D: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more