pub unsafe trait Instance<T: ObjectType> {
// Required methods
fn parent(&self) -> &<T::ParentType as Wrapper>::GlibType;
fn get_impl(&self) -> &<T as ObjectType>::ImplType;
unsafe fn set_impl(&mut self, imp: NonNull<T::ImplType>);
unsafe fn get_class(&self) -> *const ClassStruct<T>;
}Required Methods§
fn parent(&self) -> &<T::ParentType as Wrapper>::GlibType
fn get_impl(&self) -> &<T as ObjectType>::ImplType
unsafe fn set_impl(&mut self, imp: NonNull<T::ImplType>)
unsafe fn get_class(&self) -> *const ClassStruct<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".