StyleStringExt

Trait StyleStringExt 

Source
pub trait StyleStringExt {
    // Required method
    fn append_semantic<S: Hash + Eq>(
        &mut self,
        styles: &Option<SemanticStyles<S>>,
        slot: S,
    );
}
Expand description

Extension trait for building style strings with semantic styles.

Required Methods§

Source

fn append_semantic<S: Hash + Eq>( &mut self, styles: &Option<SemanticStyles<S>>, slot: S, )

Append a semantic style if it exists.

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 StyleStringExt for String

Source§

fn append_semantic<S: Hash + Eq>( &mut self, styles: &Option<SemanticStyles<S>>, slot: S, )

Implementors§