#[repr(C)]pub struct ObjectClass(/* private fields */);
Implementations§
Source§impl ObjectClass
impl ObjectClass
pub fn has_property<'a, N: Into<&'a str>>( &self, property_name: N, type_: Option<Type>, ) -> Result<(), BoolError>
pub fn get_property_type<'a, N: Into<&'a str>>( &self, property_name: N, ) -> Option<Type>
pub fn find_property<'a, N: Into<&'a str>>( &self, property_name: N, ) -> Option<ParamSpec>
pub fn list_properties(&self) -> Vec<ParamSpec>
Trait Implementations§
Source§impl IsClassFor for ObjectClass
impl IsClassFor for ObjectClass
Source§fn upcast_ref<U: IsClassFor>(&self) -> &U
fn upcast_ref<U: IsClassFor>(&self) -> &U
Casts this class to a reference to a parent type’s class.
Source§fn upcast_ref_mut<U: IsClassFor>(&mut self) -> &mut U
fn upcast_ref_mut<U: IsClassFor>(&mut self) -> &mut U
Casts this class to a mutable reference to a parent type’s class.
Source§fn downcast_ref<U: IsClassFor>(&self) -> Option<&U>
fn downcast_ref<U: IsClassFor>(&self) -> Option<&U>
Casts this class to a reference to a child type’s class or
fails if this class is not implementing the child class.
Source§fn downcast_ref_mut<U: IsClassFor>(&mut self) -> Option<&mut U>
fn downcast_ref_mut<U: IsClassFor>(&mut self) -> Option<&mut U>
Casts this class to a mutable reference to a child type’s class or
fails if this class is not implementing the child class.
impl Send for ObjectClass
impl Sync for ObjectClass
Auto Trait Implementations§
impl Freeze for ObjectClass
impl RefUnwindSafe for ObjectClass
impl Unpin for ObjectClass
impl UnwindSafe for ObjectClass
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