FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompiledBindingPathElement

    struct · ferroui-base · v0.5.0

    struct CompiledBindingPathElement<'a>
    

    A read-only view of an element of a CompiledBindingPath.

    View source

    Members

    kind

    fn kind(self: &Self) -> CompiledBindingPathElementKind
    

    What the element is.

    Source

    name

    fn name(self: &Self) -> Option<&'a str>
    

    The name of the member a property or method element reads, of the element a named-element element selects.

    Source

    property

    fn property(self: &Self) -> Option<Rc<dyn IPropertyInfo>>
    

    The description of the property a property element reads (the Property of the managed original). None for other elements and for a property that only has untyped accessors (its name and type are name and property_type).

    Source

    property_type

    fn property_type(self: &Self) -> Option<ValueType>
    

    The type of the property a property element reads.

    Source

    is_typed_property

    fn is_typed_property(self: &Self) -> bool
    

    Whether the element is a property with typed accessors: the one a path must consist of to be instantiated as a typed binding expression.

    Source

    accepts_null

    fn accepts_null(self: &Self) -> bool
    

    Whether a null-conditional operator applies to the access.

    Source

    ancestor

    fn ancestor(self: &Self) -> Option<(Option<&'static TypeInfo>, usize)>
    

    The ancestor type and level of an ancestor element.

    Source

    array_indices

    fn array_indices(self: &Self) -> Option<&'a [i32]>
    

    The indexes of an array element.

    Source

    Trait implementations

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

    Availability

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