Trait SetHtmlAttributes

Source
pub trait SetHtmlAttributes {
    // Required methods
    fn get_attributes(&self) -> &HtmlAttributes;
    fn get_attributes_mut(&mut self) -> &mut HtmlAttributes;

    // Provided methods
    fn set_class<S: Into<String>>(&mut self, class: S) { ... }
    fn clear_class(&mut self) { ... }
    fn set_id<S: Into<String>>(&mut self, id: S) { ... }
    fn clear_id(&mut self) { ... }
}

Required Methods§

Provided Methods§

Source

fn set_class<S: Into<String>>(&mut self, class: S)

Source

fn clear_class(&mut self)

Source

fn set_id<S: Into<String>>(&mut self, id: S)

Source

fn clear_id(&mut self)

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.

Implementors§