pub trait CGlueObjBase {
    type ObjType;
    type InstType: Deref<Target = Self::ObjType>;
    type Context: ContextBounds;

    // Required methods
    fn cobj_base_ref(&self) -> (&Self::ObjType, &Self::Context);
    fn cobj_base_owned(self) -> (Self::InstType, Self::Context);
}
Expand description

CGlue compatible object.

This trait allows to retrieve the constant this pointer on the structure.

Required Associated Types§

source

type ObjType

Type of the underlying object.

source

type InstType: Deref<Target = Self::ObjType>

Type of the container housing the object.

source

type Context: ContextBounds

Type of the context associated with the container.

Required Methods§

source

fn cobj_base_ref(&self) -> (&Self::ObjType, &Self::Context)

source

fn cobj_base_owned(self) -> (Self::InstType, Self::Context)

Implementors§

source§

impl<T: Deref<Target = F>, F, C: ContextBounds, R> CGlueObjBase for CGlueObjContainer<T, C, R>

§

type ObjType = F

§

type InstType = T

§

type Context = C