Module sauron_core::prelude
source · [−]Expand description
Prelude simplifies the imports from sauron This imports the necessary functions to build a basic sauron app.
Re-exports
pub use crate::html::attributes::attr;
pub use crate::html::attributes::*;
pub use crate::html::tags::*;
pub use crate::html::*;
pub use crate::svg::attributes::*;
pub use crate::svg::*;
pub use crate::vdom::*;
pub use crate::*;
pub use vdom::diff;
pub use vdom::Attribute;
pub use vdom::Element;
pub use vdom::Listener;
pub use vdom::Node;
pub use vdom::Patch;
pub use web_sys;
Modules
provides function and macro for html units such as px, %, em, etc.
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.
Traits
Add mapping function for Attribute
Add mapping function for Element
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
Creates an svg animateMotion element
Creates an svg animateTransform element
Creates an html blockquote element
Relative to the width of the “0” (zero)
Relative to the font-size of the element (2em means 2 times the size of the current font)
Creates an svg feColorMatrix element
Creates an svg feComponentTransfer element
Creates an svg feComposite element
Creates an svg feConvolveMatrix element
Creates an svg feDiffuseLighting element
Creates an svg feDisplacementMap element
Creates an svg feDistantLight element
Creates an svg feDropShadow element
Creates an svg feGaussianBlur element
Creates an svg feMergeNode element
Creates an svg feMorphology element
Creates an svg fePointLight element
Creates an svg feSpecularLighting element
Creates an svg feSpotLight element
Creates an svg feTurbulence element
Creates an html figcaption element
Creates an svg foreignObject element
Creates an svg linearGradient element
Creates an svg meshgradient element
percentage Example:
points (1pt = 1/72 of 1in)
pixels (1px = 1/96th of 1in)
Creates an svg radialGradient element
Relative to font-size of the root element
Creates an svg solidcolor element