Skip to main content

Crate euv_core

Crate euv_core 

Source
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.
AssertUnwindSafe
A simple wrapper around a type to assert that it is unwind safe.
AttrValueAdapter
Adapts an arbitrary attribute value expression into an AttributeValue.
AttributeEntry
Represents a single attribute on a virtual DOM node.
CallbackNamedAdapter
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.
DefaultHasher
The default Hasher used by RandomState.
DynamicNode
A closure-based dynamic node that re-renders when its dependency signals change.
EventAdapter
Adapts various event value types into an AttributeValue for event attributes.
EventNamedAdapter
Adapts an event with a specific event name into an AttributeValue.
FireHandle
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 HashMap where the value is ().
HookContext
Manages hook state across render cycles for a DynamicNode.
HookContextInner
Internal storage for hook state, holding boxed Any values.
InnerHtmlAdapter
Adapts an inner_html: payload into the matching AttributeValue variant (InnerHtml(String) for static strings, InnerHtmlSignal for Signal<String>).
IntervalHandle
A handle to a browser interval timer created by use_interval.
LruCache
A fixed-capacity LRU cache.
MediaRule
Represents a CSS @media rule attached to a class.
NativeEventHandler
A wrapper around an event callback.
NodeRef
A reactive handle to a mounted DOM element.
PhantomData
Zero-sized type used to mark things that “act like” they own a T.
PseudoRule
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.
SignalCell
A Sync wrapper for single-threaded global Signal access.
TextNode
Represents a text node in the virtual DOM.
VecDeque
A double-ended queue implemented with a growable ring buffer.

Enums§

AttributeValue
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.
VirtualNode
Represents a node in the virtual DOM tree.

Traits§

AsReactiveText
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 true if 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 dest with the default value of T, returning the previous dest value.
zeroed
Returns the value of type T represented by the all-zero byte-pattern.

Type Aliases§

EventCallback
Type alias for an event callback closure.
FmtResult
The type returned by formatter methods.
NodeRefDyn
Type-erased clone-able handle to a DOM element, used as the payload of AttributeValue::Ref so the renderer can populate the ref without committing to a concrete element type at attribute-set time.
SharedEventCallback
Type alias for the shared, interior-mutable storage of an event callback.

Derive Macros§

Debug
Derive macro generating an impl of the trait Debug.
Hash
Derive macro generating an impl of the trait Hash.