[go: up one dir, main page]

rkyv::ser

Trait Positional

Source
pub trait Positional {
    // Required method
    fn pos(&self) -> usize;
}
Expand description

A writer that knows its current position.

Required Methods§

Source

fn pos(&self) -> usize

Returns the current position of the writer.

Implementations on Foreign Types§

Source§

impl Positional for Vec<u8>

Available on crate feature alloc only.
Source§

fn pos(&self) -> usize

Source§

impl<T> Positional for &T
where T: Positional + ?Sized,

Source§

fn pos(&self) -> usize

Source§

impl<T> Positional for &mut T
where T: Positional + ?Sized,

Source§

fn pos(&self) -> usize

Source§

impl<T, E> Positional for Strategy<T, E>
where T: Positional + ?Sized,

Source§

fn pos(&self) -> usize

Implementors§

Source§

impl Positional for Buffer<'_>

Source§

impl<W> Positional for IoWriter<W>

Available on crate feature std only.
Source§

impl<W: Positional, A, S> Positional for Serializer<W, A, S>

Source§

impl<const A: usize> Positional for AlignedVec<A>

Available on crate feature alloc only.