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

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§