FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SourceSnapshot

    struct · ferroui-markup-xaml · v0.5.0

    struct SourceSnapshot
    

    An immutable source view retained by native includes. It records actual native include requests, even when a resource is missing or loaded after construction. It never publishes a document or claims global hot-reload ownership.

    View source

    Members

    new

    fn new(sources: Sources, unavailable: BTreeMap<String, String>) -> Self
    

    Keys are absolute loader URIs. Unavailable entries prevent fallback to a stale compiled/disk/published source while an open editor buffer is pending.

    Source

    run

    fn run<T>(self: &Self, action: impl FnOnce() -> T) -> T
    

    Activate this snapshot for construction or deferred native loading. Nested scopes and unwinding restore the exact previous context.

    Source

    requested_uris

    fn requested_uris(self: &Self) -> BTreeSet<String>
    

    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

    Availability

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