pub trait RelationExt: 'static {
// Required methods
fn add_target<P: IsA<Object>>(&self, target: &P);
fn get_relation_type(&self) -> RelationType;
fn remove_target<P: IsA<Object>>(&self, target: &P) -> bool;
fn set_property_relation_type(&self, relation_type: RelationType);
fn set_property_target(&self, target: Option<&ValueArray>);
fn connect_property_relation_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn add_target<P: IsA<Object>>(&self, target: &P)
fn get_relation_type(&self) -> RelationType
fn remove_target<P: IsA<Object>>(&self, target: &P) -> bool
fn set_property_relation_type(&self, relation_type: RelationType)
fn set_property_target(&self, target: Option<&ValueArray>)
fn connect_property_relation_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_target_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
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.