Expand description
CSS styles definition for Virtual DOM.
Consists of a vector of css chunks which can be extended.
use vertigo::{Css, CssGroup, dom};
let blue_text = Css::str("color: blue");
let black_background = Css::str("background: black");
let my_styles = Css::str("
font-family: courier;
font-size: 160%
")
.extend(blue_text)
.extend(black_background);
let element = dom! { <div css={my_styles} /> };
Fields
groups: Vec<CssGroup>
Implementations
Trait Implementations
impl Eq for Css
impl StructuralEq for Css
impl StructuralPartialEq for Css
Auto Trait Implementations
impl RefUnwindSafe for Css
impl Send for Css
impl Sync for Css
impl Unpin for Css
impl UnwindSafe for Css
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more