# SourceSnapshot

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/source_overlay/struct-sourcesnapshot/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/source_overlay.rs#L15)

## Members

- [`new`](#function-new)
- [`run`](#function-run)
- [`requested_uris`](#function-requested_uris)

<a id="function-new"></a>

### new

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/source_overlay.rs#L28)

<a id="function-run"></a>

### run

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/source_overlay.rs#L38)

<a id="function-requested_uris"></a>

### requested_uris

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/source_overlay.rs#L49)

## 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`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
