Trait planus::WriteAsDefault

source ·
pub trait WriteAsDefault<P: Primitive, D: ?Sized> { }
Expand description

Trait used by generated code to serialize primitive types with default values.

Implementations on Foreign Types§

source§

impl WriteAsDefault<bool, bool> for bool

source§

impl WriteAsDefault<f32, f32> for f32

source§

impl WriteAsDefault<f64, f64> for f64

source§

impl WriteAsDefault<i8, i8> for i8

source§

impl WriteAsDefault<i16, i16> for i16

source§

impl WriteAsDefault<i32, i32> for i32

source§

impl WriteAsDefault<i64, i64> for i64

source§

impl WriteAsDefault<u8, u8> for u8

source§

impl WriteAsDefault<u16, u16> for u16

source§

impl WriteAsDefault<u32, u32> for u32

source§

impl WriteAsDefault<u64, u64> for u64

source§

impl WriteAsDefault<Offset<str>, str> for str

source§

impl WriteAsDefault<Offset<str>, str> for String

source§

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

source§

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

source§

impl<T, P> WriteAsDefault<Offset<[P]>, ()> for [T]
where P: Primitive, T: VectorWrite<P>,

source§

impl<T, P> WriteAsDefault<Offset<[P]>, ()> for Vec<T>
where P: Primitive, T: VectorWrite<P>,

Implementors§