FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutoCompleteAsyncPopulator

    struct · ferroui-controls · v0.5.0

    struct AutoCompleteAsyncPopulator
    

    The asynchronous populator of an AutoCompleteBox: given the search text and a cancellation token it produces the items for the drop-down. The future is driven by the dispatcher of the control.

    A populator is a reference: copies compare equal to what they were copied from.

    View source

    Members

    new

    fn new(populator: impl Fn(Option<String>, CancellationToken) -> AutoCompletePopulation + 'static) -> Self
    

    Wraps a populator function.

    Source

    invoke

    fn invoke(self: &Self, search_text: Option<String>, cancellation_token: CancellationToken) -> AutoCompletePopulation
    

    Calls the populator.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • PartialEq

    Availability

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