pub trait RelationExt:
IsA<Relation>
+ Sealed
+ 'static {
// Provided methods
fn add_target(&self, target: &impl IsA<Object>) { ... }
fn relation_type(&self) -> RelationType { ... }
fn target(&self) -> Vec<Object> { ... }
fn remove_target(&self, target: &impl IsA<Object>) -> bool { ... }
fn set_relation_type(&self, relation_type: RelationType) { ... }
fn set_target(&self, target: Option<&ValueArray>) { ... }
fn connect_relation_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
Sourcefn add_target(&self, target: &impl IsA<Object>)
fn add_target(&self, target: &impl IsA<Object>)
Adds the specified AtkObject to the target for the relation, if it is
not already present. See also AtkObjectExt::add_relationship().
§target
an Object
Sourcefn relation_type(&self) -> RelationType
fn relation_type(&self) -> RelationType
Sourcefn remove_target(&self, target: &impl IsA<Object>) -> bool
fn remove_target(&self, target: &impl IsA<Object>) -> bool
fn set_relation_type(&self, relation_type: RelationType)
fn set_target(&self, target: Option<&ValueArray>)
fn connect_relation_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_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".