Trait planus::WriteAsOffset

source ·
pub trait WriteAsOffset<T: ?Sized> { }
Expand description

Trait used by generated code to serialize offsets to already serialized data.

Implementations on Foreign Types§

source§

impl WriteAsOffset<str> for str

source§

impl WriteAsOffset<str> for String

source§

impl<'a, T1: ?Sized, T2: ?Sized + WriteAsOffset<T1>> WriteAsOffset<T1> for &'a T2

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

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