Struct glib::object::ObjectClass
source · [−]#[repr(C)]pub struct ObjectClass(_);Implementations
sourceimpl 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
sourceimpl IsClassFor for ObjectClass
impl IsClassFor for ObjectClass
sourcefn upcast_ref<U: IsClassFor>(&self) -> &Uwhere
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
fn upcast_ref<U: IsClassFor>(&self) -> &Uwhere
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
Casts this class to a reference to a parent type’s class.
sourcefn upcast_ref_mut<U: IsClassFor>(&mut self) -> &mut Uwhere
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
fn upcast_ref_mut<U: IsClassFor>(&mut self) -> &mut Uwhere
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
Casts this class to a mutable reference to a parent type’s class.
impl Send for ObjectClass
impl Sync for ObjectClass
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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