DisplayVtbl

Struct DisplayVtbl 

Source
pub struct DisplayVtbl<'cglue_a, CGlueC: 'cglue_a + CGlueObjBase> { /* private fields */ }
Expand description

CGlue vtable for trait Display.

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

Implementations§

Source§

impl<'cglue_a, CGlueC: CGlueObjBase> DisplayVtbl<'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 DisplayVtbl<'cglue_a, CGlueC>

Source§

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

Source§

type Context = <CGlueC as CGlueObjBase>::Context

Source§

type RetTmp = PhantomData<DisplayRetTmpPhantom<<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 DisplayVtbl<'cglue_a, CGlueC>

Source§

type ContType = CGlueC

Source§

impl<'cglue_a, CGlueC, CGlueCtx: ContextBounds> Default for &'cglue_a DisplayVtbl<'cglue_a, CGlueC>
where CGlueC::ObjType: Display, CGlueC: Opaquable + CGlueObjRef<DisplayRetTmp<CGlueCtx>, Context = CGlueCtx> + 'cglue_a, CGlueC::OpaqueTarget: GenericTypeBounds, DisplayVtbl<'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 DisplayVtbl<'cglue_a, CGlueC>
where CGlueC::OpaqueTarget: Opaquable + CGlueObjBase + GenericTypeBounds, CGlueC: Opaquable + CGlueObjRef<DisplayRetTmp<CGlueCtx>, Context = CGlueCtx> + 'cglue_a, CGlueC::ObjType: Display,

Auto Trait Implementations§

§

impl<'cglue_a, CGlueC> Freeze for DisplayVtbl<'cglue_a, CGlueC>

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 F
where T: Into<F>,

Source§

fn from2(other: T) -> F

Source§

impl<T, U> Into<U> for T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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 T
where T: CGlueVtblCont,