FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BlockCollection

    struct · ferroui-controls · v0.5.0

    struct BlockCollection
    

    An observable, shared collection of block elements. Clones retain identity.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    add

    fn add(self: &Self, block: impl IntoRef<Block>)
    

    Source

    insert

    fn insert(self: &Self, index: usize, block: impl IntoRef<Block>)
    

    Source

    remove

    fn remove(self: &Self, block: impl IntoRef<Block>) -> bool
    

    Source

    set

    fn set(self: &Self, index: usize, block: impl IntoRef<Block>)
    

    Source

    text

    fn text(self: &Self) -> String
    

    Source

    text_length

    fn text_length(self: &Self) -> usize
    

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.