Skip to main content

ToWXF

Trait ToWXF 

Source
pub trait ToWXF {
    // Required method
    fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
       where W: Writer;
}
Expand description

Types that know how to serialize themselves into a WXF stream.

Required Methods§

Source

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Write self to w as a complete WXF value (tag + payload).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToWXF for ()

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for String

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<f32>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<f64>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<i8>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<i16>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<i32>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<i64>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<u8>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<u16>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<u32>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for Vec<u64>

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [f32]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [f64]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [i8]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [i16]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [i32]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [i64]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [u8]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [u16]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [u32]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for [u64]

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for bool

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for f32

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for f64

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for i8

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for i16

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for i32

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for i64

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for str

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for u8

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for u16

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for u32

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl ToWXF for u64

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<K, V, S> ToWXF for HashMap<K, V, S>
where K: ToWXF, V: ToWXF,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<K, V> ToWXF for BTreeMap<K, V>
where K: ToWXF, V: ToWXF,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<T, E> ToWXF for Result<T, E>
where T: ToWXF, E: ToWXF,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<T> ToWXF for &T
where T: ToWXF + ?Sized,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<T> ToWXF for Box<T>
where T: ToWXF + ?Sized,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<T> ToWXF for Option<T>
where T: ToWXF,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Source§

impl<T> ToWXF for Vec<T>
where T: ToWXF + WxfStruct,

Source§

fn to_wxf<W>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>
where W: Writer,

Implementors§