Skip to main content

Module rust

Module rust 

Source
Expand description

Rust source-code emitter for parsed CSS.

Produces a const CSS: Css = ...; literal plus a minimal Cargo.toml and src/main.rs skeleton suitable for cargo build against azul.

Structs§

RustBackend
Emits Rust source code for a parsed CSS stylesheet.

Functions§

css_to_rust_code
Render a parsed Css as Rust source code (a const CSS: Css = ...;).
format_attribute_match_op
format_attribute_selector
format_dynamic_css_prop
format_node_type
format_nth_child_selector
format_pseudo_selector_type
format_selectors
format_single_selector
print_block_path
print_declaration