InlineCollection
struct · ferroui-controls · v0.5.0
struct InlineCollection
A collection of Inlines.
The value is a shared handle: clones refer to the same collection, and handles compare by identity.
Members
new
fn new() -> Self
Initializes a new instance of the InlineCollection class.
text
fn text(self: &Self) -> Option<String>
Gets the text contained in this collection: the text of every inline,
or None when the collection is empty.
add
fn add(self: &Self, inline: impl IntoRef<Inline>)
Adds an inline (of any class) to the collection.
The text of a hosting text block becomes the first run of the collection.
add_text
fn add_text(self: &Self, text: &str)
Adds a text inline to this collection.
add_control
fn add_control(self: &Self, control: impl IntoRef<Control>)
Adds a control wrapped inside an InlineUIContainer to this
collection.
invalidated
fn invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Raised when an inline in the collection changes.
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>ReceiverAnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherMarkupTypedValueTypeRegistrationClonePartialEqDebugDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.