FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CallbackTranslationProvider

    struct · ferroui-protranslate-core · v0.5.0

    struct CallbackTranslationProvider<F>
    

    Host bridge for resource managers, localizer services, embedded stores, and other application providers. Ok(None) is a miss; Ok(Some("")) is a hit. Hosts remain responsible for calling TranslationService::refresh after changing external data when already-bound values must refresh immediately.

    View source

    Members

    new

    fn new(name: impl Into<String>, callback: F) -> Self
    

    Source

    try_new

    fn try_new(name: impl Into<String>, callback: F) -> Result<Self, TranslationError>
    

    Source

    invalidate

    fn invalidate(self: &Self)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • TranslationProvider

    Availability

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