Expand description
euv
A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Re-exports§
pub use vdom::*;
Modules§
Structs§
- App
- A zero-sized application context struct providing access to core euv framework APIs.
- Assert
Unwind Safe - A simple wrapper around a type to assert that it is unwind safe.
- Default
Hasher - The default
Hasherused byRandomState. - Error
Boundary - A handle that tracks whether a wrapped subtree has thrown.
- Fire
Handle - A handle to a leaked
FnMut()closure, stored as the closure’s heap address. - Form
State - The aggregate form state.
- Hook
Context - Manages hook state across render cycles for a DynamicNode.
- I18n
- The aggregate i18n state.
- Interval
Handle - A handle to a browser interval timer created by
use_interval. - Lazy
Component - A lazy component that defers factory invocation until first access.
- LruCache
- A fixed-capacity LRU cache.
- Native
Event Handler - A wrapper around an event callback.
- NodeRef
- A reactive handle to a mounted DOM element.
- Profile
Entry - A single recorded measurement.
- Profiler
Handle - A handle to the profiler registered against the current hook context.
- Profiler
Mark - A
begin()marker — RAII guard that records the start timestamp and the label so the matchingend()call can compute the elapsed time. - Signal
- A reactive signal handle.
- Signal
Cell - A
Syncwrapper for single-threaded globalSignalaccess. - Suspense
Handle - A handle that drives a
SuspenseState. - Transition
Config - Configuration for a
TransitionState. - Transition
State - The aggregate transition state.
- UseAsync
Handle use_async’s reactive handle, stored in the hook context slot and returned to the user on each render.
Enums§
- Async
State - Discriminant for the three states an
use_asyncfuture can be in. - Error
Boundary Phase - The phase of an
ErrorBoundary. - Load
State - The state of a
LazyComponent. - Suspense
Phase - The phase of a
SuspenseState. - Transition
Phase - The four phases of a transition lifecycle.
Traits§
- HasLoading
Hint - Optional payload for the
Loadingstate. - Hash
- A hashable type.
- Hasher
- A trait for hashing an arbitrary stream of bytes.
- Hook
Context Form Ext - Extension trait that exposes the hook-context factory
used by
App::use_form. - Hook
Context I18n Ext - Extension trait that exposes the hook-context factory
used by
App::use_i18n. - Hook
Context Transition Ext - Extension trait that exposes the hook-context factory
used by
App::use_transition.
Functions§
- catch_
unwind - Invokes a closure, capturing the cause of an unwinding panic if one occurs.
- now_ms
- Returns a monotonic millisecond timestamp suitable for profiling measurements.
Type Aliases§
- Message
Entry - An entry for
I18n::add_messages— a(key, value)pair that the caller usually writes as a single literal array. The tuple form keeps the public API allocation-free for the common “compile-time literal list of pairs” case. - Validator
- A single validator closure, used by
[
FormState::validate].
Derive Macros§
- Hash
- Derive macro generating an impl of the trait
Hash.