Trait zero_formatter::Formatter
[−]
[src]
pub trait Formatter<T>: Seek + ReadBytesExt + WriteBytesExt { fn serialize(&mut self, offset: u64, value: T) -> ZeroFormatterResult<i32>; fn deserialize(&mut self, offset: &mut u64) -> ZeroFormatterResult<T>; }
Formatter provide serializer and deserializer for ZeroFormatter.
Required Methods
fn serialize(&mut self, offset: u64, value: T) -> ZeroFormatterResult<i32>
fn deserialize(&mut self, offset: &mut u64) -> ZeroFormatterResult<T>
Implementors
impl<R> Formatter<u8> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<bool> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<i8> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<u16> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<u32> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<u64> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<i16> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<i32> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<i64> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<f32> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<f64> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<'a, R> Formatter<Cow<'a, str>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<u8>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<u16>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<u32>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<u64>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<i8>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<i16>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<i32>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<i64>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<f32>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<f64>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<bool>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<DateTime<UTC>>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Option<Duration>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R, A1, A2> Formatter<(A1, A2)> for R where
R: Seek + ReadBytesExt + WriteBytesExt + Formatter<A1> + Formatter<A2>,impl<R> Formatter<DateTime<UTC>> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<R> Formatter<Duration> for R where
R: Seek + ReadBytesExt + WriteBytesExt,impl<'a, R, A: Clone> Formatter<Cow<'a, [A]>> for R where
R: Seek + ReadBytesExt + WriteBytesExt + Formatter<A> + Formatter<i32>,