Expand description
An experimental approach to UI in Rust with a focus on ergonomics, efficiency, and simplicity.
This crate contains shared infrastructure which is platform agnostic. To
build an application, you’ll need a backend crate such as ravel-web.
Structs§
- Adapt
- A
Buildercreated fromadapt. - Adapt
State - The state of an
Adapt. - Cx
- Context provided by
with. - Thunk
- A reference to a
Statewhich must beState::run. - Thunk
Result - The result of
Thunk::run. - Token
- The result of calling
Cx::build. This ensures correct usage ofwith. - With
- A
Buildercreated fromwith. - With
Local - A
Buildercreated fromwith_local. - With
Local State - The state of a
WithLocal.
Traits§
- AsAny
- Trait for upcasting to
Any, implemented automatically. - Builder
- Initializes a component or applies updates to an existing one.
- CxRep
- A dummy type which typically represents a “backend”.
- State
- Trait for the state of a
Builder.
Functions§
- adapt
- Adapts a
Builderso that itsStateis compatible with a differentOutputtype. - adapt_
ref - Adapts a
Builderso that itsStateis compatible with a differentOutputtype. - with
- Creates a
Builderfrom a callback which usesCx::build. TheBuilderpassed withCx::buildcan borrow local data in the callback, without that lifetime being captured in the result. - with_
local - Creates a
Builderwhich has access to a local state value.