another_html_builder

Trait AttributeValue

Source
pub trait AttributeValue {
    // Required method
    fn render(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

Represents an element attribute value.

This value should be escaped for double quotes for example. The implementation of this trait on &str already implements this.

Required Methods§

Source

fn render(&self, f: &mut Formatter<'_>) -> Result

Implementations on Foreign Types§

Source§

impl AttributeValue for &str

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for bool

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for i8

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for i16

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for i32

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for i64

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for isize

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for u8

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for u16

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for u32

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for u64

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Source§

impl AttributeValue for usize

Source§

fn render(&self, f: &mut Formatter<'_>) -> Result

Implementors§