Trait quick_xml::AsStr

source ·
pub trait AsStr {
    // Required method
    fn as_str(&self) -> Result<&str>;
}
Expand description

A trait to support on-demand conversion from UTF-8

Required Methods§

source

fn as_str(&self) -> Result<&str>

Converts this to an &str

Implementations on Foreign Types§

source§

impl AsStr for [u8]

Implements AsStr for a byte slice

source§

fn as_str(&self) -> Result<&str>

Implementors§