pub struct Offset<T: ?Sized> { /* private fields */ }
Expand description
An offset to a serialized value of type T inside a buffer currently being built.
Trait Implementations§
impl<T: ?Sized> Copy for Offset<T>
impl<T: ?Sized> VectorWrite<Offset<T>> for Offset<T>
impl VectorWrite<Offset<str>> for String
impl VectorWrite<Offset<str>> for str
impl<T, P> WriteAs<Offset<[P]>> for [T]where
P: Primitive,
T: VectorWrite<P>,
impl<T, P, const N: usize> WriteAs<Offset<[P]>> for [T; N]where
P: Primitive,
T: VectorWrite<P>,
impl<T, P> WriteAs<Offset<[P]>> for Vec<T>where
P: Primitive,
T: VectorWrite<P>,
impl<T: ?Sized> WriteAs<Offset<T>> for Offset<T>
impl WriteAs<Offset<str>> for String
impl WriteAs<Offset<str>> for str
impl<T, P> WriteAsDefault<Offset<[P]>, ()> for [T]where
P: Primitive,
T: VectorWrite<P>,
impl<T, P> WriteAsDefault<Offset<[P]>, ()> for Vec<T>where
P: Primitive,
T: VectorWrite<P>,
impl WriteAsDefault<Offset<str>, str> for String
impl WriteAsDefault<Offset<str>, str> for str
impl<T: ?Sized> WriteAsOffset<T> for Offset<T>
impl<T, P> WriteAsOptional<Offset<[P]>> for [T]where
P: Primitive,
T: VectorWrite<P>,
impl<T, P, const N: usize> WriteAsOptional<Offset<[P]>> for [T; N]where
P: Primitive,
T: VectorWrite<P>,
impl<T, P> WriteAsOptional<Offset<[P]>> for Vec<T>where
P: Primitive,
T: VectorWrite<P>,
impl<T: ?Sized> WriteAsOptional<Offset<T>> for Offset<T>
impl WriteAsOptional<Offset<str>> for String
impl WriteAsOptional<Offset<str>> for str
Auto Trait Implementations§
impl<T> Freeze for Offset<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Offset<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Offset<T>
impl<T> Sync for Offset<T>
impl<T> Unpin for Offset<T>
impl<T> UnwindSafe for Offset<T>where
T: UnwindSafe + ?Sized,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more