pub struct ClassBuilder { /* private fields */ }Implementations§
Source§impl ClassBuilder
impl ClassBuilder
pub fn style<B, C>(self, name: B, value: C) -> Self
pub fn style_important<B, C>(self, name: B, value: C) -> Self
pub fn style_unchecked<B, C>(self, name: B, value: C) -> Self
pub fn style_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn style_important_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn style_unchecked_signal<B, C, D, E>(self, name: B, value: E) -> Self
Sourcepub fn raw<B>(self, css: B) -> Selfwhere
B: AsStr,
pub fn raw<B>(self, css: B) -> Selfwhere
B: AsStr,
Appends raw CSS code into the class.
It is recommended to use the various .style methods instead.
However, .raw is useful if you need to copy some existing CSS
into dominator.
§Example
class! {
.raw(r#"
background-color: green;
width: 50px;
position: absolute;
"#)
}Auto Trait Implementations§
impl Freeze for ClassBuilder
impl !RefUnwindSafe for ClassBuilder
impl !Send for ClassBuilder
impl !Sync for ClassBuilder
impl Unpin for ClassBuilder
impl !UnwindSafe for ClassBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more