pub unsafe trait ObjectClassExt<T: ObjectBase>where
T::ImplType: ObjectImpl<T>,{
// Provided methods
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,
)
where F: Fn(&mut Value, &Value) -> bool + Send + Sync + 'static { ... }
fn add_action_signal<F>(
&mut self,
name: &str,
arg_types: &[Type],
ret_type: Type,
handler: F,
)
where F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static { ... }
}
Provided Methods§
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, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.