pub enum StyleValue {
String(String),
Px(f64),
Percent(f64),
Number(f64),
}Expand description
A CSS style value — string, pixel, percent, or unitless number.
Variants§
Implementations§
Source§impl StyleValue
impl StyleValue
pub fn to_css_string(&self) -> String
Trait Implementations§
Source§impl Clone for StyleValue
impl Clone for StyleValue
Source§impl Debug for StyleValue
impl Debug for StyleValue
Source§impl PartialEq for StyleValue
impl PartialEq for StyleValue
impl StructuralPartialEq for StyleValue
Auto Trait Implementations§
impl Freeze for StyleValue
impl RefUnwindSafe for StyleValue
impl Send for StyleValue
impl Sync for StyleValue
impl Unpin for StyleValue
impl UnsafeUnpin for StyleValue
impl UnwindSafe for StyleValue
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