AttributeValue

Trait AttributeValue 

Source
pub trait AttributeValue {
    // Required method
    fn to_attr_value(&self) -> Cow<'static, str>;
}
Expand description

A trait for types that can be converted to an attribute value string.

Required Methods§

Source

fn to_attr_value(&self) -> Cow<'static, str>

Convert to the attribute value string.

Implementations on Foreign Types§

Source§

impl AttributeValue for &'static str

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Source§

impl AttributeValue for Cow<'static, str>

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Source§

impl AttributeValue for bool

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Source§

impl AttributeValue for i32

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Source§

impl AttributeValue for u32

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Source§

impl AttributeValue for String

Source§

fn to_attr_value(&self) -> Cow<'static, str>

Implementors§