gir_parser::prelude

Trait XmlValue

pub trait XmlValue: Sized {
    // Required methods
    fn serialize(&self) -> String;
    fn deserialize(s: &str) -> Result<Self, String>;
}

Required Methods§

fn serialize(&self) -> String

fn deserialize(s: &str) -> Result<Self, String>

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§

§

impl XmlValue for bool

§

impl XmlValue for f32

§

impl XmlValue for f64

§

impl XmlValue for i8

§

impl XmlValue for i16

§

impl XmlValue for i32

§

impl XmlValue for i64

§

impl XmlValue for i128

§

impl XmlValue for isize

§

impl XmlValue for u8

§

impl XmlValue for u16

§

impl XmlValue for u32

§

impl XmlValue for u64

§

impl XmlValue for u128

§

impl XmlValue for usize

§

impl XmlValue for String

§

impl XmlValue for NonZero<i8>

§

impl XmlValue for NonZero<i16>

§

impl XmlValue for NonZero<i32>

§

impl XmlValue for NonZero<i64>

§

impl XmlValue for NonZero<i128>

§

impl XmlValue for NonZero<isize>

§

impl XmlValue for NonZero<u8>

§

impl XmlValue for NonZero<u16>

§

impl XmlValue for NonZero<u32>

§

impl XmlValue for NonZero<u64>

§

impl XmlValue for NonZero<u128>

§

impl XmlValue for NonZero<usize>

Implementors§