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).
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.
from_pairs
fn from_pairs(pairs: &[(&str, &str)]) -> Self
The base classes stated as pairs (class, base), for the tests.
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.
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.
chain
fn chain(self: &Self, name: &str) -> Vec<String>
name and its base classes, nearest first.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.