StyleReloadTarget
struct · ferroui-hot-reload · v0.5.0
struct StyleReloadTarget
Replaces one style or nested Styles contribution, retaining its container and application-owned siblings. Native style removal detaches the previous frames; addition invalidates styling for the owner and its logical descendants. Register static-resource consumers as dependencies of this document. Applications caching the replaced style need an explicit refresh adapter.
Members
with_dependencies
fn with_dependencies(self: Self, dependencies: impl IntoIterator<Item = String>) -> Self
Declares resources/styles outside the document's inline includes, such as application resources consumed through StaticResource. Their revisions are prepared and committed in the same transaction as this target.
contribution
fn contribution(container: &Ref<Styles>, index: usize, uri: String, configuration: RuntimeXamlLoaderConfiguration) -> Result<Self, ReloadError>
discover
fn discover(container: &Ref<Styles>, configuration: RuntimeXamlLoaderConfiguration) -> Result<Vec<Self>, ReloadError>
Discovers direct style includes without evaluating their markup.
is_alive
fn is_alive(self: &Self) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherReloadTarget
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.