Trait StyleAttributeEnum

Source
pub trait StyleAttributeEnum: Sized {
    // Required methods
    fn from_str(s: &str) -> Option<Self>;
    fn to_str(&self) -> &str;
}

Required Methods§

Source

fn from_str(s: &str) -> Option<Self>

Source

fn to_str(&self) -> &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StyleAttributeEnum for TextAlign

Source§

fn from_str(s: &str) -> Option<Self>

Source§

fn to_str(&self) -> &str

Source§

impl StyleAttributeEnum for bool

Source§

fn from_str(s: &str) -> Option<Self>

Source§

fn to_str(&self) -> &str

Implementors§