Trait AttributeName

Source
pub trait AttributeName {
    // Required methods
    fn is_valid_attribute_name(&self) -> bool;
    fn write_attribute_name(self, w: &mut impl Write) -> Result;
}
Expand description

Represents a name of an attribute.

Required Methods§

Source

fn is_valid_attribute_name(&self) -> bool

Tells whether the attribute name is valid.

Source

fn write_attribute_name(self, w: &mut impl Write) -> Result

Writes the attribute name to w.

§Arguments
  • w - The writer to write to.

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 AttributeName for &&str

Source§

impl AttributeName for &str

Source§

impl AttributeName for &String

Source§

impl AttributeName for String

Implementors§