Struct cglue::ext::DebugVtbl

source ·
#[repr(C)]
pub struct DebugVtbl<'cglue_a, CGlueC: 'cglue_a + CGlueObjBase> { /* private fields */ }
Expand description

CGlue vtable for trait Debug.

This virtual function table contains ABI-safe interface for the given trait.

Implementations§

source§

impl<'cglue_a, CGlueC: CGlueObjBase> DebugVtbl<'cglue_a, CGlueC>

source

pub fn fmt( &self ) -> unsafe extern "C" fn(cont: &CGlueC, f_out: &mut WriteMut<'_>) -> i32

Getter for fmt.

Note that this function is wrapped into unsafe, because if already were is an opaque one, it would allow to invoke undefined behaviour.

Trait Implementations§

source§

impl<'cglue_a, CGlueC: Opaquable + CGlueObjBase + 'cglue_a> CGlueBaseVtbl for DebugVtbl<'cglue_a, CGlueC>where CGlueC::OpaqueTarget: Opaquable + CGlueObjBase + GenericTypeBounds, CGlueC::ObjType: Debug,

§

type OpaqueVtbl = DebugVtbl<'cglue_a, <CGlueC as Opaquable>::OpaqueTarget>

§

type Context = <CGlueC as CGlueObjBase>::Context

§

type RetTmp = PhantomData<DebugRetTmpPhantom<<CGlueC as CGlueObjBase>::Context>>

source§

fn as_opaque(&self) -> &Self::OpaqueVtbl

Get the opaque vtable for the type.
source§

impl<'cglue_a, CGlueC: CGlueObjBase> CGlueVtblCont for DebugVtbl<'cglue_a, CGlueC>

§

type ContType = CGlueC

source§

impl<'cglue_a, CGlueC, CGlueCtx: ContextBounds> Default for &'cglue_a DebugVtbl<'cglue_a, CGlueC>where CGlueC::ObjType: Debug, CGlueC: Opaquable + CGlueObjRef<DebugRetTmp<CGlueCtx>, Context = CGlueCtx> + 'cglue_a, CGlueC::OpaqueTarget: GenericTypeBounds, DebugVtbl<'cglue_a, CGlueC>: CGlueBaseVtbl,

Default vtable reference creation.

source§

fn default() -> Self

Create a static vtable for the given type.

source§

impl<'cglue_a, CGlueC, CGlueCtx: ContextBounds> CGlueVtbl<CGlueC> for DebugVtbl<'cglue_a, CGlueC>where CGlueC::OpaqueTarget: Opaquable + CGlueObjBase + GenericTypeBounds, CGlueC: Opaquable + CGlueObjRef<DebugRetTmp<CGlueCtx>, Context = CGlueCtx> + 'cglue_a, CGlueC::ObjType: Debug,

Auto Trait Implementations§

§

impl<'cglue_a, CGlueC> RefUnwindSafe for DebugVtbl<'cglue_a, CGlueC>where CGlueC: RefUnwindSafe,

§

impl<'cglue_a, CGlueC> Send for DebugVtbl<'cglue_a, CGlueC>where CGlueC: Sync,

§

impl<'cglue_a, CGlueC> Sync for DebugVtbl<'cglue_a, CGlueC>where CGlueC: Sync,

§

impl<'cglue_a, CGlueC> Unpin for DebugVtbl<'cglue_a, CGlueC>

§

impl<'cglue_a, CGlueC> UnwindSafe for DebugVtbl<'cglue_a, CGlueC>where CGlueC: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, F> From2<T> for Fwhere T: Into<F>,

source§

fn from2(other: T) -> F

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> GenericTypeBounds for T

source§

impl<T> OpaqueVtblBounds for Twhere T: CGlueVtblCont,