Trait planus::WriteAsOptional

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

Trait used by generated code to serialize optional primitive types.

Implementations on Foreign Types§

source§

impl WriteAsOptional<bool> for bool

source§

impl WriteAsOptional<f32> for f32

source§

impl WriteAsOptional<f64> for f64

source§

impl WriteAsOptional<i8> for i8

source§

impl WriteAsOptional<i16> for i16

source§

impl WriteAsOptional<i32> for i32

source§

impl WriteAsOptional<i64> for i64

source§

impl WriteAsOptional<u8> for u8

source§

impl WriteAsOptional<u16> for u16

source§

impl WriteAsOptional<u32> for u32

source§

impl WriteAsOptional<u64> for u64

source§

impl WriteAsOptional<Offset<str>> for str

source§

impl WriteAsOptional<Offset<str>> for String

source§

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

source§

impl<P: Primitive> WriteAsOptional<P> for ()

source§

impl<P: Primitive, T: WriteAsOptional<P>> WriteAsOptional<P> for Option<T>

source§

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

source§

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

source§

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

source§

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

Implementors§