BehaviorCollection
struct · ferroui-xaml-interactivity · v0.5.0
struct BehaviorCollection
Represents a collection of IBehaviors with a shared
associated_object.
The collection is a notifying list of objects (FerroList<FerroObject>); every item must be
a behavior. It is a reference object: clones refer to the same collection and compare by
identity.
Members
new
fn new() -> Self
Initializes a new instance of the BehaviorCollection class.
list
fn list(self: &Self) -> &FerroList<Ref<FerroObject>>
The list of the collection.
associated_object
fn associated_object(self: &Self) -> Option<Ref<FerroObject>>
Gets the object to which the BehaviorCollection is attached.
attach
fn attach(self: &Self, associated_object: impl Into<Nullable<FerroObject>>)
Attaches the collection of behaviors to the specified object.
Panics
Panics if the BehaviorCollection is already attached to a different object.
detach
fn detach(self: &Self)
Detaches the collection of behaviors from the
associated_object.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherClonePartialEqDerefDefaultDebugMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.