FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TypeGraph

    struct · ferroui-build · v0.5.0

    struct TypeGraph
    

    The edges between types that make a type live with another, by local name: the base class of a class (what keeps the theme of a base class for a class that does not override its style key) and the classes the code of a class creates (#568, step 4: the containers a ListBox creates, the selection handles of a TextBox).

    View source

    Members

    from_models

    fn from_models<'m>(models: impl IntoIterator<Item = &'m AssemblyModel>) -> Self
    

    The edges the models state: for each class of the object model with a base class, the markup name of the base, found by its Rust name; for each type that creates classes, their local names.

    Source

    from_pairs

    fn from_pairs(pairs: &[(&str, &str)]) -> Self
    

    The base classes stated as pairs (class, base), for the tests.

    Source

    with_creates

    fn with_creates(self: Self, pairs: &[(&str, &str)]) -> Self
    

    The graph with the creates edges stated as pairs (class, created), for the tests.

    Source

    is_class

    fn is_class(self: &Self, name: &str) -> bool
    

    Whether name is a class of the object model of the models, or a class of an edge.

    Source

    chain

    fn chain(self: &Self, name: &str) -> Vec<String>
    

    name and its base classes, nearest first.

    Source

    live

    fn live(self: &Self, name: &str) -> BTreeSet<String>
    

    The types that are live when name is: name, its base classes, the classes any of them creates, and so on, transitively.

    Source

    Trait implementations

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

    Availability

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