Skip to main content

Crate topcoat_view

Crate topcoat_view 

Source

Modules§

svg

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.
ClassWriter
A writer that separates class list entries with single spaces.
EmitToken
The return token for a live region’s body.
Formatter
A string writer for rendered output.
HoistKey
The key of a part hoisted at most once per content.
HoistView
Collects the parts hoisted while a view polls and prepends them to the content it resolves.
HtmlWriter
A writer created by HtmlContext::writer that makes everything written to it safe for its context before appending it to the underlying Formatter.
Length
A CSS length: a numeric value paired with a LengthUnit.
PartsWriter
Collects renderable parts for one HTML position.
PromotedStr
A reference to a static string that a view can store without copying.
RegionId
Identifies a region by its enclosing identity and source location.
RenderedResponsehttp
The output of rendering a ViewHandle for an HTTP response.
Set
Marks a required property as set in a generated builder.
StaticStr
A static string a view records without copying it.
Unescaped
A wrapper that marks its contents as already-safe HTML.
ViewFirst
The initial content returned by View::poll_first.
ViewHandle
A handle to an HTML fragment.
ViewSwap
An update to a live region, returned by View::poll_swap.

Enums§

AttributeKey
An attribute key captured from any AttributeKeyViewParts value.
AttributeValue
An attribute value captured from any AttributeValueViewParts value.
HtmlContext
The position in an HTML document that a dynamic value is written into.
LengthUnit
A CSS length unit.

Traits§

AttributeKeyViewParts
Converts a value used as an attribute key into view parts.
AttributeValueViewParts
Converts a value used as an attribute value into view parts.
AttributeViewParts
Converts one or more attributes into view parts.
ClassEntries
One or more class list entries written through a ClassWriter.
ClassViewParts
Converts a value used as a class list entry into view parts.
Component
DynViewPart
A boxed view part that writes its output at render time.
ElementNameViewParts
Converts a value used as an element name into view parts.
IsSet
Indicates that a generated builder’s property has been set.
NodeViewParts
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 View with its concrete type erased, built with ViewExt::boxed.
StaticClass
The type of a class list built from string literals alone.