Module sauron_core::prelude

source ·
Expand description

prelude

Re-exports

Macros

  • Creates css using json notation
  • Creates css using json notation
  • Create a css string using json notation and use namespace on the class selectors
  • create css using jss with namespace macro with correct indentions
  • Create css using jss macro with nice indentions
  • Creat a style attribute

Structs

  • A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
  • Convenience type for use on exported fn() -> Result<T, JsError> functions, where you wish to throw a JavaScript Error object.
  • Representation of an object owned by JS.
  • Describe the path traversal of a Node starting from the root node

Constants

  • These are most commonly used html attributes such as class, id, etc

Traits

  • Add mapping function for Attribute
  • Add mapping function for Element
  • A trait for checked and unchecked casting between JS types.
  • Add mapping function for Node, Element, Attribute,
  • render node, elements to a writable buffer
  • An extension trait for Option<T> and Result<T, E> for unwrapping the T value, or throwing a JS error if it is not available.

Functions

Attribute Macros