planus

Trait 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 WriteAsOffset<[i8]> for [i8]

Source§

impl WriteAsOffset<[u8]> for [u8]

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>

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>,

Source§

impl<const N: usize> WriteAsOffset<[i8]> for [i8; N]

Source§

impl<const N: usize> WriteAsOffset<[u8]> for [u8; N]

Implementors§

Source§

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