BlockCollection
struct · ferroui-controls · v0.5.0
struct BlockCollection
An observable, shared collection of block elements. Clones retain identity.
Members
new
fn new() -> Self
add
fn add(self: &Self, block: impl IntoRef<Block>)
insert
fn insert(self: &Self, index: usize, block: impl IntoRef<Block>)
remove
fn remove(self: &Self, block: impl IntoRef<Block>) -> bool
set
fn set(self: &Self, index: usize, block: impl IntoRef<Block>)
text
fn text(self: &Self) -> String
text_length
fn text_length(self: &Self) -> usize
invalidated
fn invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Dropping the returned guard removes the handler; Subscription::detach keeps it for the
life of the collection.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherClonePartialEqDebugDefaultDerefMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.