#[repr(C)]pub struct InstanceStruct<T: ObjectSubclass> { /* private fields */ }
Expand description
A basic instance struct that does not store any additional data.
Trait Implementations
sourceimpl<T: ObjectSubclass> Debug for InstanceStruct<T> where
<T::ParentType as ObjectType>::GlibType: Debug,
impl<T: ObjectSubclass> Debug for InstanceStruct<T> where
<T::ParentType as ObjectType>::GlibType: Debug,
sourceimpl<T: ObjectSubclass> InstanceStruct for InstanceStruct<T>
impl<T: ObjectSubclass> InstanceStruct for InstanceStruct<T>
type Type = T
type Type = T
Corresponding object subclass type for this instance struct.
sourcefn imp(&self) -> &Self::Type
fn imp(&self) -> &Self::Type
Returns the implementation for from this instance struct, that
is the implementor of ObjectImpl
or subtraits. Read more
sourcefn class(&self) -> &<Self::Type as ObjectSubclass>::Class
fn class(&self) -> &<Self::Type as ObjectSubclass>::Class
Returns the class struct for this specific instance.
sourcefn instance_init(&mut self)
fn instance_init(&mut self)
Instance specific initialization. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for InstanceStruct<T> where
<<T as ObjectSubclass>::ParentType as ObjectType>::GlibType: RefUnwindSafe,
impl<T> Send for InstanceStruct<T> where
<<T as ObjectSubclass>::ParentType as ObjectType>::GlibType: Send,
impl<T> Sync for InstanceStruct<T> where
<<T as ObjectSubclass>::ParentType as ObjectType>::GlibType: Sync,
impl<T> Unpin for InstanceStruct<T> where
<<T as ObjectSubclass>::ParentType as ObjectType>::GlibType: Unpin,
impl<T> UnwindSafe for InstanceStruct<T> where
<<T as ObjectSubclass>::ParentType as ObjectType>::GlibType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more