FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ThemeTrimming

    struct · ferroui-build · v0.5.0

    struct ThemeTrimming
    

    What the manifest of an application states about the trimming of its themes.

    View source

    Members

    enabled

    enabled: bool
    

    The application constructs its themes from the units it needs: the default, and theme-trimming = true; theme-trimming = false turns it off.

    Source

    all

    all: bool
    

    theme-roots = "all": every unit is kept (the trimmed construction, with the full table).

    Source

    roots

    roots: Vec<String>
    

    theme-roots = ["Name", ..]: units, by the path of their document, or types or keys.

    Source

    from_manifest

    fn from_manifest(text: &str) -> Result<Self, String>
    

    The trimming the manifest text states in its table [package.metadata.ferroui]; the default (trimming on) when it has none. An error names the key whose value is not one of the forms above.

    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
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default

    Availability

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