pub trait XMLStringUtils {
// Required methods
fn escape_ascii_into_string(&self) -> Result<String, EditXMLError>;
fn into_string(&self) -> Result<String, EditXMLError>;
// Provided method
fn unescape_to_string(&self) -> Result<String, EditXMLError> { ... }
}
Expand description
Trait for converting quick-xml types to string
Required Methods§
Sourcefn escape_ascii_into_string(&self) -> Result<String, EditXMLError>
fn escape_ascii_into_string(&self) -> Result<String, EditXMLError>
Escapes non-ascii characters into their escape sequences
Sourcefn into_string(&self) -> Result<String, EditXMLError>
fn into_string(&self) -> Result<String, EditXMLError>
Converts the type into a string
Provided Methods§
Sourcefn unescape_to_string(&self) -> Result<String, EditXMLError>
fn unescape_to_string(&self) -> Result<String, EditXMLError>
Unescapes the content of the type into a string