Crate ravel

Crate ravel 

Source
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 Builder created from adapt.
AdaptState
The state of an Adapt.
Cx
Context provided by with.
Thunk
A reference to a State which must be State::run.
ThunkResult
The result of Thunk::run.
Token
The result of calling Cx::build. This ensures correct usage of with.
With
A Builder created from with.
WithLocal
A Builder created from with_local.
WithLocalState
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 Builder so that its State is compatible with a different Output type.
adapt_ref
Adapts a Builder so that its State is compatible with a different Output type.
with
Creates a Builder from a callback which uses Cx::build. The Builder passed with Cx::build can borrow local data in the callback, without that lifetime being captured in the result.
with_local
Creates a Builder which has access to a local state value.