FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MethodHelper

    struct · ferroui-xaml-interactivity · v0.5.0

    struct MethodHelper
    

    Finds the method a call-method action calls on its target: a public method of the name that returns nothing (or a task) and takes no parameters, or two parameters of which the first is an untyped value (the sender).

    Deviation (DEVIATIONS.md, Behaviors): the methods are the methods of the markup metadata of the type of the target (GetRuntimeMethods() of the reference); see member_lookup.

    View source

    Members

    new

    fn new() -> Self
    

    Creates a helper with no target.

    Source

    has_target_object_type

    fn has_target_object_type(self: &Self) -> bool
    

    Whether the helper has a target type (TargetObjectType is not null).

    Source

    find_best_method

    fn find_best_method(self: &Self, parameter: Option<&BoxedValue>) -> Option<MethodDescriptor>
    

    Finds the method whose second parameter is closest to the type of parameter, or the parameterless method (or the one method that accepts null as its second parameter).

    Source

    update_target_type

    fn update_target_type(self: &Self, target: &BoxedValue, method_name: Option<&str>)
    

    Sets the target the methods are found on, and finds the methods named method_name when the type of the target changed (UpdateTargetType(target.GetType(), methodName)).

    Source

    update_method_descriptors

    fn update_method_descriptors(self: &Self, method_name: Option<&str>)
    

    Finds the methods named method_name on the target.

    Source

    Trait implementations

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

    Availability

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