Struct safer_ffi::dyn_traits::dyn_drop::ImplDropGlue
source · #[repr(transparent)]pub struct ImplDropGlue<T>(pub T);
Available on crate feature
dyn-traits
only.Expand description
We need to use a new type to avoid the trait-coherence issues of an otherwise too blanket-y impl.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Debug> Debug for ImplDropGlue<T>
impl<T: Debug> Debug for ImplDropGlue<T>
impl<T> DropGlue for ImplDropGlue<T>
impl<T> StaticDropGlue for ImplDropGlue<T>where T: 'static + Send + Sync,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ImplDropGlue<T>where T: RefUnwindSafe,
impl<T> Send for ImplDropGlue<T>where T: Send,
impl<T> Sync for ImplDropGlue<T>where T: Sync,
impl<T> Unpin for ImplDropGlue<T>where T: Unpin,
impl<T> UnwindSafe for ImplDropGlue<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FitForCBox for T
impl<T> FitForCBox for T
§type CBoxWrapped = Box_<T>
type CBoxWrapped = Box_<T>
Available on crate feature
alloc
only.source§impl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>
source§impl<T> UpcastAny for Twhere
T: 'static,
impl<T> UpcastAny for Twhere T: 'static,
source§fn upcast_any(&self) -> &(dyn Any + 'static)
fn upcast_any(&self) -> &(dyn Any + 'static)
Available on crate feature
headers
only.