FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyAccessorBase

    struct · ferroui-base · v0.5.0

    struct PropertyAccessorBase
    

    The listener bookkeeping shared by property accessors.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    is_subscribed

    fn is_subscribed(self: &Self) -> bool
    

    Source

    set_listener

    fn set_listener(self: &Self, listener: AccessorListener)
    

    Stores the listener. Panics if already subscribed: a member accessor can be subscribed to only once.

    Source

    clear_listener

    fn clear_listener(self: &Self)
    

    Clears the listener. Panics if not subscribed.

    Source

    publish_value

    fn publish_value(self: &Self, value: Option<BoxedValue>)
    

    Publishes a value to the listener.

    Source

    Trait implementations

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

    Availability

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