[][src]Module render_tree::prelude

Re-exports

pub use crate::document::*;
pub use crate::macros::*;

Structs

Combine
CurriedBlockComponent
CurriedIterBlockComponent
CurriedOnceBlockComponent
Each

A list of items that can be appended into a Document. For each item in items, the callback is invoked, and its return value is appended to the document.

Empty
Join

Equivalent to Each(), but inserts a joiner between two adjacent elements.

OnceBlock
Section

A section that can be appended into a document. Sections are invisible, but can be targeted in stylesheets with selectors using their name.

Traits

BlockComponent
IterBlockComponent
OnceBlockComponent
Render

The Render trait defines a type that can be added to a Document. It is defined for Node, String, &str, and Document.alloc

RenderComponent

This trait defines a renderable entity with arguments. Types that implement RenderComponent can be packaged up together with their arguments in a Component, and the Component is renderable.

Functions

Component
Each
IfSome
Join
Line

Inserts a line into a Document. The contents are inserted first, followed by a newline.

Section
SomeValue
repeat

Creates a Render that, when appended into a Document, repeats a given string a specified number of times.