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.
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.
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.
requested_uris
fn requested_uris(self: &Self) -> BTreeSet<String>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.