Enum leptos_dom::Style
source · pub enum Style {
Value(Oco<'static, str>),
Option(Option<Oco<'static, str>>),
Fn(Rc<dyn Fn() -> Style>),
}
Expand description
todo docs
Variants§
Value(Oco<'static, str>)
A plain string value.
Option(Option<Oco<'static, str>>)
An optional string value, which sets the property to the value if Some
and removes the property if None
.
Fn(Rc<dyn Fn() -> Style>)
A (presumably reactive) function, which will be run inside an effect to update the style.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl !RefUnwindSafe for Style
impl !Send for Style
impl !Sync for Style
impl Unpin for Style
impl !UnwindSafe for Style
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