Modules§
Structs§
- Attribute
- A single HTML attribute.
- Attributes
- A runtime collection of HTML attributes with unique keys.
- Child
- Child content passed to a component.
- Class
- A space-separated list of HTML classes.
- Class
Writer - A writer that separates class list entries with single spaces.
- Emit
Token - The return token for a live region’s body.
- Formatter
- A string writer for rendered output.
- Hoist
Key - The key of a part hoisted at most once per content.
- Hoist
View - Collects the parts hoisted while a view polls and prepends them to the content it resolves.
- Html
Writer - A writer created by
HtmlContext::writerthat makes everything written to it safe for its context before appending it to the underlyingFormatter. - Length
- A CSS length: a numeric value paired with a
LengthUnit. - Parts
Writer - Collects renderable parts for one HTML position.
- Promoted
Str - A reference to a static string that a view can store without copying.
- Region
Id - Identifies a region by its enclosing identity and source location.
- Rendered
Response http - The output of rendering a
ViewHandlefor an HTTP response. - Set
- Marks a required property as set in a generated builder.
- Static
Str - A static string a view records without copying it.
- Unescaped
- A wrapper that marks its contents as already-safe HTML.
- View
First - The initial content returned by
View::poll_first. - View
Handle - A handle to an HTML fragment.
- View
Swap - An update to a live region, returned by
View::poll_swap.
Enums§
- Attribute
Key - An attribute key captured from any
AttributeKeyViewPartsvalue. - Attribute
Value - An attribute value captured from any
AttributeValueViewPartsvalue. - Html
Context - The position in an HTML document that a dynamic value is written into.
- Length
Unit - A CSS length unit.
Traits§
- Attribute
KeyView Parts - Converts a value used as an attribute key into view parts.
- Attribute
Value View Parts - Converts a value used as an attribute value into view parts.
- Attribute
View Parts - Converts one or more attributes into view parts.
- Class
Entries - One or more class list entries written through a
ClassWriter. - Class
View Parts - Converts a value used as a class list entry into view parts.
- Component
- DynView
Part - A boxed view part that writes its output at render time.
- Element
Name View Parts - Converts a value used as an element name into view parts.
- IsSet
- Indicates that a generated builder’s property has been set.
- Node
View Parts - Converts a value used in node position into view parts.
- Props
- A properties struct whose builder checks required fields at compile time.
- View
- A piece of HTML that can keep changing while a response streams.
- ViewExt
- Methods available on every
View.
Functions§
- hoist
- Hoists a part into the content of the enclosing view.
- hoist_
once - Hoists a part into the content of the enclosing view unless a part with the same key was already hoisted into that content.
Type Aliases§
- BoxView
- A
Viewwith its concrete type erased, built withViewExt::boxed. - Static
Class - The type of a class list built from string literals alone.