FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Upcast

    trait · ferroui-base · v0.5.0

    trait Upcast<T: ?Sized>
    

    Access to the embedded base-class data of an object.

    Implemented by ferro_class! for every ancestor of a class, so T: Upcast<U> reads as "T is U or derives from it".

    View source

    Members

    upcast

    fn upcast(self: &Self) -> &T
    

    Source

    Trait implementations

    Availability

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