Struct safer_ffi::dyn_traits::dyn_drop::StaticDropGlueVTable_Layout
source · #[repr(C)]pub struct StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,{
pub release_vptr: CLayoutOf<unsafe extern "C" fn(_: NonNullOwned<ErasedTy>)>,
pub retain_vptr: CLayoutOf<unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>>,
pub _invariant: CLayoutOf<PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>>,
}
Available on crate feature
dyn-traits
only.Fields§
§release_vptr: CLayoutOf<unsafe extern "C" fn(_: NonNullOwned<ErasedTy>)>
§retain_vptr: CLayoutOf<unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>>
§_invariant: CLayoutOf<PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>>
Trait Implementations§
source§impl<'__usability> CType for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
impl<'__usability> CType for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
type OPAQUE_KIND = Concrete
fn short_name() -> String
fn define_self__impl( language: &dyn HeaderLanguage, definer: &mut dyn Definer ) -> Result<()>
fn zeroed() -> Self
fn define_self( language: &dyn HeaderLanguage, definer: &mut dyn Definer ) -> Result<()>
fn name(_language: &dyn HeaderLanguage) -> String
fn name_wrapping_var(language: &dyn HeaderLanguage, var_name: &str) -> String
source§fn csharp_marshaler() -> Option<String>
fn csharp_marshaler() -> Option<String>
Optional marshaler attached to the type (e.g.,
[MarshalAs(UnmanagedType.FunctionPtr)]
)source§impl<'__usability> Clone for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
impl<'__usability> Clone for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
source§impl<'__usability> ReprC for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
impl<'__usability> ReprC for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
impl<'__usability> Copy for StaticDropGlueVTable_Layout<'__usability>where
unsafe extern "C" fn(_: NonNullOwned<ErasedTy>): ConcreteReprC,
unsafe extern "C" fn(_: NonNullRef<ErasedTy>) -> NonNullOwned<ErasedTy>: ConcreteReprC,
PhantomData<*mut (<u8 as IdentityIgnoring<'__usability>>::ItSelf,)>: ConcreteReprC,
Auto Trait Implementations§
impl<'__usability> Freeze for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
impl<'__usability> RefUnwindSafe for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
impl<'__usability> Send for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
impl<'__usability> Sync for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
impl<'__usability> Unpin for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
impl<'__usability> UnwindSafe for StaticDropGlueVTable_Layout<'__usability>where
PhantomData<*mut (u8,)>: Sized,
unsafe extern "C" fn(_: NonNullRef<Erased>) -> NonNullOwned<Erased>: Sized,
unsafe extern "C" fn(_: NonNullOwned<Erased>): Sized,
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.