pub struct Object(/* private fields */);
Trait Implementations§
Source§impl ObjectClassExt<Object> for ObjectClass
impl ObjectClassExt<Object> for ObjectClass
fn override_vfuncs(&mut self, _: &ClassInitToken)
fn install_properties(&mut self, properties: &[Property<'_>])
fn add_signal(&mut self, name: &str, arg_types: &[Type], ret_type: Type)
fn add_signal_with_accumulator<F>( &mut self, name: &str, arg_types: &[Type], ret_type: Type, accumulator: F, )
fn add_action_signal<F>( &mut self, name: &str, arg_types: &[Type], ret_type: Type, handler: F, )
Source§impl ObjectType for Object
impl ObjectType for Object
const NAME: &'static str = "RsObject"
type ParentType = Object
type ImplType = Box<dyn ObjectImpl<Object>>
type InstanceStructType = InstanceStruct<Object>
fn class_init(token: &ClassInitToken, klass: &mut ObjectClass)
unsafe fn get_instance(&self) -> *mut Self::InstanceStructType
fn get_impl(&self) -> &Self::ImplType
unsafe fn get_class(&self) -> *const ClassStruct<Self>
Source§impl Ord for Object
impl Ord for Object
Source§impl<T: IsA<Object>> PartialOrd<T> for Object
impl<T: IsA<Object>> PartialOrd<T> for Object
Source§impl StaticType for Object
impl StaticType for Object
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Object
impl IsA<Object> for Object
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for T
impl<T> Cast for T
Source§fn upcast_ref<T>(&self) -> &T
fn upcast_ref<T>(&self) -> &T
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>
fn downcast<T>(self) -> Result<T, Self>
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>
fn downcast_ref<T>(&self) -> Option<&T>
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn is<T>(&self) -> boolwhere
T: StaticType,
fn is<T>(&self) -> boolwhere
T: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.Source§fn dynamic_cast<T>(self) -> Result<T, Self>
fn dynamic_cast<T>(self) -> Result<T, Self>
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>
fn dynamic_cast_ref<T>(&self) -> Option<&T>
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Super, Sub> Downcast<Sub> for Super
impl<Super, Sub> Downcast<Sub> for Super
Source§fn can_downcast(&self) -> bool
fn can_downcast(&self) -> bool
Checks if it’s possible to downcast to
T
. Read moreSource§unsafe fn downcast_unchecked(self) -> Sub
unsafe fn downcast_unchecked(self) -> Sub
Downcasts to
T
unconditionally. Read moreSource§unsafe fn downcast_ref_unchecked(&self) -> &Sub
unsafe fn downcast_ref_unchecked(&self) -> &Sub
Downcasts to
&T
unconditionally. Read more