Skip to main content

Positional

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Positional for Vec<u8>

Source§

fn pos(&self) -> usize

Source§

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

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

Implementors§

Source§

impl Positional for Buffer<'_>

Source§

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

Source§

impl<W> Positional for IoWriter<W>

Source§

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