Trait planus::WriteAs

source ·
pub trait WriteAs<P: Primitive> { }
Expand description

Trait used by generated code to serialize primitive types.

Implementations on Foreign Types§

source§

impl WriteAs<bool> for bool

source§

impl WriteAs<f32> for f32

source§

impl WriteAs<f64> for f64

source§

impl WriteAs<i8> for i8

source§

impl WriteAs<i16> for i16

source§

impl WriteAs<i32> for i32

source§

impl WriteAs<i64> for i64

source§

impl WriteAs<u8> for u8

source§

impl WriteAs<u16> for u16

source§

impl WriteAs<u32> for u32

source§

impl WriteAs<u64> for u64

source§

impl WriteAs<Offset<str>> for str

source§

impl WriteAs<Offset<str>> for String

source§

impl<'a, P: Primitive, T: ?Sized + WriteAs<P>> WriteAs<P> for &'a T

source§

impl<P: Primitive, T: ?Sized + WriteAs<P>> WriteAs<P> for Box<T>

source§

impl<T, P> WriteAs<Offset<[P]>> for [T]
where P: Primitive, T: VectorWrite<P>,

source§

impl<T, P> WriteAs<Offset<[P]>> for Vec<T>
where P: Primitive, T: VectorWrite<P>,

source§

impl<T, P, const N: usize> WriteAs<Offset<[P]>> for [T; N]
where P: Primitive, T: VectorWrite<P>,

Implementors§

source§

impl<T: ?Sized> WriteAs<Offset<T>> for Offset<T>