Expand description
euv
A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Modules§
- fmt
- Utilities for formatting and printing
Strings.
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.
- Attr
Value Adapter - Adapts an arbitrary attribute value expression into an
AttributeValue. - Attribute
Entry - Represents a single attribute on a virtual DOM node.
- Callback
Named Adapter - Adapts a callback with a custom name into an
AttributeValue. - Css
- Represents a CSS class with a name, its style declarations, and optional pseudo rules.
- Default
Hasher - The default
Hasherused byRandomState. - Dynamic
Node - A closure-based dynamic node that re-renders when its dependency signals change.
- Event
Adapter - Adapts various event value types into an
AttributeValuefor event attributes. - Event
Named Adapter - Adapts an event with a specific event name into an
AttributeValue. - Fire
Handle - A handle to a leaked
FnMut()closure, stored as the closure’s heap address. - Formatter
- Configuration for formatting.
- HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- HashSet
- A hash set implemented as a
HashMapwhere the value is(). - Hook
Context - Manages hook state across render cycles for a DynamicNode.
- Hook
Context Inner - Internal storage for hook state, holding boxed
Anyvalues. - Inner
Html Adapter - Adapts an
inner_html:payload into the matchingAttributeValuevariant (InnerHtml(String)for static strings,InnerHtmlSignalforSignal<String>). - Interval
Handle - A handle to a browser interval timer created by
use_interval. - LruCache
- A fixed-capacity LRU cache.
- Media
Rule - Represents a CSS @media rule attached to a class.
- Native
Event Handler - A wrapper around an event callback.
- NodeRef
- A reactive handle to a mounted DOM element.
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T. - Pseudo
Rule - Represents a CSS pseudo-class or pseudo-element rule attached to a class.
- RawHtml
- A raw HTML string that the renderer must insert without escaping.
- Signal
- A reactive signal handle.
- Signal
Cell - A
Syncwrapper for single-threaded globalSignalaccess. - Text
Node - Represents a text node in the virtual DOM.
- VecDeque
- A double-ended queue implemented with a growable ring buffer.
Enums§
- Attribute
Value - Represents the value of an HTML attribute.
- DiffOp
- A single diff operation that transforms one virtual- DOM list into another.
- Tag
- Represents the type of an HTML tag or a component.
- Virtual
Node - Represents a node in the virtual DOM tree.
Traits§
- AsReactive
Text - Trait for types that can be converted into a reactive text
VirtualNode. - Debug
?formatting.- Display
- Format trait for an empty format,
{}. - Hash
- A hashable type.
- Hasher
- A trait for hashing an arbitrary stream of bytes.
Functions§
- all_
have_ keys - Returns
trueif every node in the slice has a key. - catch_
unwind - Invokes a closure, capturing the cause of an unwinding panic if one occurs.
- diff_
children - Computes the diff between two virtual-DOM child lists.
- diff_
keyed - Keyed diff. Both slices must have keys on every node; nodes without keys are skipped (they are not eligible for keyed diffing).
- diff_
positional - Positional diff. Patches in place by index, then inserts/removes at the tail.
- swap
- Swaps the values at two mutable locations, without deinitializing either one.
- take
- Replaces
destwith the default value ofT, returning the previousdestvalue. - zeroed⚠
- Returns the value of type
Trepresented by the all-zero byte-pattern.
Type Aliases§
- Event
Callback - Type alias for an event callback closure.
- FmtResult
- The type returned by formatter methods.
- Node
RefDyn - Type-erased clone-able handle to a DOM element, used as the payload of
AttributeValue::Refso the renderer can populate the ref without committing to a concrete element type at attribute-set time. - Shared
Event Callback - Type alias for the shared, interior-mutable storage of an event callback.