Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 String

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>

Implementors§