Trait xso::FromXmlText

source ·
pub trait FromXmlText: Sized {
    // Required method
    fn from_xml_text(s: &str) -> Result<Self, Error>;
}
Expand description

Convert XML text to a value.

Required Methods§

source

fn from_xml_text(s: &str) -> Result<Self, Error>

Construct a value from XML text.

This is similar to std::str::FromStr, but the error type is fixed.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromXmlText for IpAddr

source§

impl FromXmlText for f32

source§

impl FromXmlText for f64

source§

impl FromXmlText for i8

source§

impl FromXmlText for i16

source§

impl FromXmlText for i32

source§

impl FromXmlText for i64

source§

impl FromXmlText for i128

source§

impl FromXmlText for isize

source§

impl FromXmlText for u8

source§

impl FromXmlText for u16

source§

impl FromXmlText for u32

source§

impl FromXmlText for u64

source§

impl FromXmlText for u128

source§

impl FromXmlText for usize

source§

impl FromXmlText for BareJid

source§

impl FromXmlText for FullJid

source§

impl FromXmlText for Jid

source§

impl FromXmlText for String

source§

fn from_xml_text(s: &str) -> Result<Self, Error>

Copy the string from the source into the result.

source§

impl FromXmlText for Ipv4Addr

source§

impl FromXmlText for Ipv6Addr

Implementors§