Struct epserde::deser::slice_with_pos::SliceWithPos
source · pub struct SliceWithPos<'a> {
pub data: &'a [u8],
pub pos: usize,
}
Expand description
std::io::Cursor
-like trait for deserialization that does not
depend on std
.
Fields§
§data: &'a [u8]
§pos: usize
Implementations§
Trait Implementations§
source§impl<'a> Clone for SliceWithPos<'a>
impl<'a> Clone for SliceWithPos<'a>
source§fn clone(&self) -> SliceWithPos<'a>
fn clone(&self) -> SliceWithPos<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> CopyType for SliceWithPos<'a>
impl<'a> CopyType for SliceWithPos<'a>
source§impl<'a> Debug for SliceWithPos<'a>
impl<'a> Debug for SliceWithPos<'a>
source§impl<'a> MemDbgImpl for SliceWithPos<'a>
impl<'a> MemDbgImpl for SliceWithPos<'a>
source§impl<'a> MemSize for SliceWithPos<'a>
impl<'a> MemSize for SliceWithPos<'a>
source§impl<'a> ReadNoStd for SliceWithPos<'a>
impl<'a> ReadNoStd for SliceWithPos<'a>
Auto Trait Implementations§
impl<'a> Freeze for SliceWithPos<'a>
impl<'a> RefUnwindSafe for SliceWithPos<'a>
impl<'a> Send for SliceWithPos<'a>
impl<'a> Sync for SliceWithPos<'a>
impl<'a> Unpin for SliceWithPos<'a>
impl<'a> UnwindSafe for SliceWithPos<'a>
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
source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
source§impl<T> MemDbg for Twhere
T: MemDbgImpl,
impl<T> MemDbg for Twhere
T: MemDbgImpl,
source§fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
Write to stdout debug infos about the structure memory usage, expanding
all levels of nested structures.
source§fn mem_dbg_on(
&self,
writer: &mut impl Write,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags ) -> Result<(), Error>
Write to a
core::fmt::Write
debug infos about the structure memory usage,
expanding all levels of nested structures.source§fn mem_dbg_depth(
&self,
total_size: usize,
max_depth: usize,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_depth( &self, total_size: usize, max_depth: usize, flags: DbgFlags ) -> Result<(), Error>
Write to stdout debug infos about the structure memory usage, but expanding only
up to
max_depth
levels of nested structures.source§fn mem_dbg_depth_on(
&self,
writer: &mut impl Write,
total_size: usize,
max_depth: usize,
prefix: &mut String,
field_name: Option<&str>,
is_last: bool,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, flags: DbgFlags ) -> Result<(), Error>
Write to a
core::fmt::Write
debug infos about the structure memory usage,
but expanding only up to max_depth
levels of nested structures.source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.