#[non_exhaustive]pub struct Empty;๐ฌThis is a nightly-only experimental API. (
core_io)Expand description
Trait Implementationsยง
1.0.0 ยท Sourceยงimpl BufRead for Empty
impl BufRead for Empty
Sourceยงfn fill_buf(&mut self) -> Result<&[u8], Error>
fn fill_buf(&mut self) -> Result<&[u8], Error>
Returns the contents of the internal buffer, filling it with more data, via
Read methods, if empty. Read moreSourceยงfn consume(&mut self, _n: usize)
fn consume(&mut self, _n: usize)
Marks the given
amount of additional bytes from the internal buffer as having been read.
Subsequent calls to read only return bytes that have not been marked as read. Read moreSourceยงfn has_data_left(&mut self) -> Result<bool, Error>
fn has_data_left(&mut self) -> Result<bool, Error>
๐ฌThis is a nightly-only experimental API. (
buf_read_has_data_left)Checks if there is any data left to be
read. Read moreSourceยงfn skip_until(&mut self, _byte: u8) -> Result<usize, Error>
fn skip_until(&mut self, _byte: u8) -> Result<usize, Error>
Skips all bytes until the delimiter
byte or EOF is reached. Read moreSourceยงfn read_line(&mut self, _buf: &mut String) -> Result<usize, Error>
fn read_line(&mut self, _buf: &mut String) -> Result<usize, Error>
Reads all bytes until a newline (the
0xA byte) is reached, and append
them to the provided String buffer. Read moreimpl Copy for Empty
1.0.0 ยท Sourceยงimpl Read for Empty
impl Read for Empty
Sourceยงfn read(&mut self, _buf: &mut [u8]) -> Result<usize, Error>
fn read(&mut self, _buf: &mut [u8]) -> Result<usize, Error>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read. Read more
Sourceยงfn read_buf(&mut self, _cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, _cursor: BorrowedCursor<'_>) -> Result<(), Error>
๐ฌThis is a nightly-only experimental API. (
read_buf)Pull some bytes from this source into the specified buffer. Read more
Sourceยงfn read_vectored(
&mut self,
_bufs: &mut [IoSliceMut<'_>],
) -> Result<usize, Error>
fn read_vectored( &mut self, _bufs: &mut [IoSliceMut<'_>], ) -> Result<usize, Error>
Like
read, except that it reads into a slice of buffers. Read moreSourceยงfn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
๐ฌThis is a nightly-only experimental API. (
can_vector)Sourceยงfn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Reads the exact number of bytes required to fill
buf. Read moreSourceยงfn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
๐ฌThis is a nightly-only experimental API. (
read_buf)Reads the exact number of bytes required to fill
cursor. Read moreSourceยงfn read_to_end(&mut self, _buf: &mut Vec<u8>) -> Result<usize, Error>
fn read_to_end(&mut self, _buf: &mut Vec<u8>) -> Result<usize, Error>
Reads all bytes until EOF in this source, placing them into
buf. Read moreSourceยงfn read_to_string(&mut self, _buf: &mut String) -> Result<usize, Error>
fn read_to_string(&mut self, _buf: &mut String) -> Result<usize, Error>
Reads all bytes until EOF in this source, appending them to
buf. Read more1.0.0 ยท Sourceยงfn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Creates a โby referenceโ adapter for this instance of
Read. Read more1.0.0 ยท Sourceยงfn chain<R>(self, next: R) -> Chain<Self, R> โ
fn chain<R>(self, next: R) -> Chain<Self, R> โ
Creates an adapter which will chain this stream with another. Read more
1.51.0 ยท Sourceยงimpl Seek for Empty
impl Seek for Empty
Sourceยงfn seek(&mut self, _pos: SeekFrom) -> Result<u64, Error>
fn seek(&mut self, _pos: SeekFrom) -> Result<u64, Error>
Seek to an offset, in bytes, in a stream. Read more
Sourceยงfn stream_len(&mut self) -> Result<u64, Error>
fn stream_len(&mut self) -> Result<u64, Error>
๐ฌThis is a nightly-only experimental API. (
seek_stream_len)Returns the length of this stream (in bytes). Read more
Sourceยงfn stream_position(&mut self) -> Result<u64, Error>
fn stream_position(&mut self) -> Result<u64, Error>
Returns the current seek position from the start of the stream. Read more
1.73.0 ยท Sourceยงimpl Write for Empty
impl Write for Empty
Sourceยงfn write(&mut self, buf: &[u8]) -> Result<usize, Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Writes a buffer into this writer, returning how many bytes were written. Read more
Sourceยงfn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
๐ฌThis is a nightly-only experimental API. (
can_vector)Sourceยงfn write_all(&mut self, _buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, _buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Sourceยงfn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
๐ฌThis is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Sourceยงfn write_fmt(&mut self, _args: Arguments<'_>) -> Result<(), Error>
fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<(), Error>
Writes a formatted string into this writer, returning any error
encountered. Read more
1.73.0 ยท Sourceยงimpl Write for &Empty
impl Write for &Empty
Sourceยงfn write(&mut self, buf: &[u8]) -> Result<usize, Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Writes a buffer into this writer, returning how many bytes were written. Read more
Sourceยงfn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
๐ฌThis is a nightly-only experimental API. (
can_vector)Sourceยงfn write_all(&mut self, _buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, _buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Sourceยงfn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
๐ฌThis is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Sourceยงfn write_fmt(&mut self, _args: Arguments<'_>) -> Result<(), Error>
fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<(), Error>
Writes a formatted string into this writer, returning any error
encountered. Read more
Auto Trait Implementationsยง
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnsafeUnpin for Empty
impl UnwindSafe for Empty
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Sourceยงimpl<R> ReadBytesExt for R
impl<R> ReadBytesExt for R
Sourceยงfn read_u8(&mut self) -> Result<u8, Error>
fn read_u8(&mut self) -> Result<u8, Error>
Reads an unsigned 8 bit integer from the underlying reader. Read more
Sourceยงfn read_i8(&mut self) -> Result<i8, Error>
fn read_i8(&mut self) -> Result<i8, Error>
Reads a signed 8 bit integer from the underlying reader. Read more
Sourceยงfn read_u16<T>(&mut self) -> Result<u16, Error>where
T: ByteOrder,
fn read_u16<T>(&mut self) -> Result<u16, Error>where
T: ByteOrder,
Reads an unsigned 16 bit integer from the underlying reader. Read more
Sourceยงfn read_i16<T>(&mut self) -> Result<i16, Error>where
T: ByteOrder,
fn read_i16<T>(&mut self) -> Result<i16, Error>where
T: ByteOrder,
Reads a signed 16 bit integer from the underlying reader. Read more
Sourceยงfn read_u24<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
fn read_u24<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
Reads an unsigned 24 bit integer from the underlying reader. Read more
Sourceยงfn read_i24<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
fn read_i24<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
Reads a signed 24 bit integer from the underlying reader. Read more
Sourceยงfn read_u32<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
fn read_u32<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
Reads an unsigned 32 bit integer from the underlying reader. Read more
Sourceยงfn read_i32<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
fn read_i32<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
Reads a signed 32 bit integer from the underlying reader. Read more
Sourceยงfn read_u48<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
fn read_u48<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
Reads an unsigned 48 bit integer from the underlying reader. Read more
Sourceยงfn read_i48<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
fn read_i48<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
Reads a signed 48 bit integer from the underlying reader. Read more
Sourceยงfn read_u64<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
fn read_u64<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
Reads an unsigned 64 bit integer from the underlying reader. Read more
Sourceยงfn read_i64<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
fn read_i64<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
Reads a signed 64 bit integer from the underlying reader. Read more
Sourceยงfn read_u128<T>(&mut self) -> Result<u128, Error>where
T: ByteOrder,
fn read_u128<T>(&mut self) -> Result<u128, Error>where
T: ByteOrder,
Reads an unsigned 128 bit integer from the underlying reader. Read more
Sourceยงfn read_i128<T>(&mut self) -> Result<i128, Error>where
T: ByteOrder,
fn read_i128<T>(&mut self) -> Result<i128, Error>where
T: ByteOrder,
Reads a signed 128 bit integer from the underlying reader. Read more
Sourceยงfn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
fn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
Reads an unsigned n-bytes integer from the underlying reader. Read more
Sourceยงfn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
fn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
Reads a signed n-bytes integer from the underlying reader. Read more
Sourceยงfn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>where
T: ByteOrder,
fn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>where
T: ByteOrder,
Reads an unsigned n-bytes integer from the underlying reader.
Sourceยงfn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>where
T: ByteOrder,
fn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>where
T: ByteOrder,
Reads a signed n-bytes integer from the underlying reader.
Sourceยงimpl<R> ReadEndian<[f32]> for Rwhere
R: Read,
impl<R> ReadEndian<[f32]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [f32],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [f32], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [f32]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [f32]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[f64]> for Rwhere
R: Read,
impl<R> ReadEndian<[f64]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [f64],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [f64], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [f64]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [f64]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[i8]> for Rwhere
R: Read,
impl<R> ReadEndian<[i8]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [i8],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [i8], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [i8]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [i8]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[i16]> for Rwhere
R: Read,
impl<R> ReadEndian<[i16]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [i16],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [i16], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [i16]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [i16]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[i32]> for Rwhere
R: Read,
impl<R> ReadEndian<[i32]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [i32],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [i32], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [i32]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [i32]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[i64]> for Rwhere
R: Read,
impl<R> ReadEndian<[i64]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [i64],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [i64], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [i64]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [i64]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[i128]> for Rwhere
R: Read,
impl<R> ReadEndian<[i128]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [i128],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [i128], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [i128]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [i128]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[u8]> for Rwhere
R: Read,
impl<R> ReadEndian<[u8]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [u8],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [u8], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [u8]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [u8]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[u16]> for Rwhere
R: Read,
impl<R> ReadEndian<[u16]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [u16],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [u16], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [u16]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [u16]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[u32]> for Rwhere
R: Read,
impl<R> ReadEndian<[u32]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [u32],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [u32], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [u32]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [u32]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[u64]> for Rwhere
R: Read,
impl<R> ReadEndian<[u64]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [u64],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [u64], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [u64]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [u64]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<[u128]> for Rwhere
R: Read,
impl<R> ReadEndian<[u128]> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut [u128],
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut [u128], ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut [u128]) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut [u128]) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<f32> for Rwhere
R: Read,
impl<R> ReadEndian<f32> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut f32) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut f32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut f32) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut f32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<f64> for Rwhere
R: Read,
impl<R> ReadEndian<f64> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut f64) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut f64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut f64) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut f64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<i8> for Rwhere
R: Read,
impl<R> ReadEndian<i8> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut i8) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut i8) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut i8) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut i8) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<i16> for Rwhere
R: Read,
impl<R> ReadEndian<i16> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut i16) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut i16) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut i16) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut i16) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<i32> for Rwhere
R: Read,
impl<R> ReadEndian<i32> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut i32) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut i32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut i32) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut i32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<i64> for Rwhere
R: Read,
impl<R> ReadEndian<i64> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut i64) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut i64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut i64) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut i64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<i128> for Rwhere
R: Read,
impl<R> ReadEndian<i128> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut i128,
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut i128, ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut i128) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut i128) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<u8> for Rwhere
R: Read,
impl<R> ReadEndian<u8> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut u8) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut u8) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut u8) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut u8) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<u16> for Rwhere
R: Read,
impl<R> ReadEndian<u16> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut u16) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut u16) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut u16) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut u16) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<u32> for Rwhere
R: Read,
impl<R> ReadEndian<u32> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut u32) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut u32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut u32) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut u32) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<u64> for Rwhere
R: Read,
impl<R> ReadEndian<u64> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(&mut self, value: &mut u64) -> Result<(), Error>
fn read_from_little_endian_into(&mut self, value: &mut u64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut u64) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut u64) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R> ReadEndian<u128> for Rwhere
R: Read,
impl<R> ReadEndian<u128> for Rwhere
R: Read,
Sourceยงfn read_from_little_endian_into(
&mut self,
value: &mut u128,
) -> Result<(), Error>
fn read_from_little_endian_into( &mut self, value: &mut u128, ) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_big_endian_into(&mut self, value: &mut u128) -> Result<(), Error>
fn read_from_big_endian_into(&mut self, value: &mut u128) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>
Read into the supplied reference. Acts the same as
std::io::Read::read_exact.Sourceยงfn read_from_little_endian(&mut self) -> Result<T, Error>
fn read_from_little_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงfn read_from_big_endian(&mut self) -> Result<T, Error>
fn read_from_big_endian(&mut self) -> Result<T, Error>
Read the byte value of the inferred type
Sourceยงimpl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Sourceยงimpl<W> WriteBytesExt for W
impl<W> WriteBytesExt for W
Sourceยงfn write_u8(&mut self, n: u8) -> Result<(), Error>
fn write_u8(&mut self, n: u8) -> Result<(), Error>
Writes an unsigned 8 bit integer to the underlying writer. Read more
Sourceยงfn write_i8(&mut self, n: i8) -> Result<(), Error>
fn write_i8(&mut self, n: i8) -> Result<(), Error>
Writes a signed 8 bit integer to the underlying writer. Read more
Sourceยงfn write_u16<T>(&mut self, n: u16) -> Result<(), Error>where
T: ByteOrder,
fn write_u16<T>(&mut self, n: u16) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 16 bit integer to the underlying writer. Read more
Sourceยงfn write_i16<T>(&mut self, n: i16) -> Result<(), Error>where
T: ByteOrder,
fn write_i16<T>(&mut self, n: i16) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 16 bit integer to the underlying writer. Read more
Sourceยงfn write_u24<T>(&mut self, n: u32) -> Result<(), Error>where
T: ByteOrder,
fn write_u24<T>(&mut self, n: u32) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 24 bit integer to the underlying writer. Read more
Sourceยงfn write_i24<T>(&mut self, n: i32) -> Result<(), Error>where
T: ByteOrder,
fn write_i24<T>(&mut self, n: i32) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 24 bit integer to the underlying writer. Read more
Sourceยงfn write_u32<T>(&mut self, n: u32) -> Result<(), Error>where
T: ByteOrder,
fn write_u32<T>(&mut self, n: u32) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 32 bit integer to the underlying writer. Read more
Sourceยงfn write_i32<T>(&mut self, n: i32) -> Result<(), Error>where
T: ByteOrder,
fn write_i32<T>(&mut self, n: i32) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 32 bit integer to the underlying writer. Read more
Sourceยงfn write_u48<T>(&mut self, n: u64) -> Result<(), Error>where
T: ByteOrder,
fn write_u48<T>(&mut self, n: u64) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 48 bit integer to the underlying writer. Read more
Sourceยงfn write_i48<T>(&mut self, n: i64) -> Result<(), Error>where
T: ByteOrder,
fn write_i48<T>(&mut self, n: i64) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 48 bit integer to the underlying writer. Read more
Sourceยงfn write_u64<T>(&mut self, n: u64) -> Result<(), Error>where
T: ByteOrder,
fn write_u64<T>(&mut self, n: u64) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 64 bit integer to the underlying writer. Read more
Sourceยงfn write_i64<T>(&mut self, n: i64) -> Result<(), Error>where
T: ByteOrder,
fn write_i64<T>(&mut self, n: i64) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 64 bit integer to the underlying writer. Read more
Sourceยงfn write_u128<T>(&mut self, n: u128) -> Result<(), Error>where
T: ByteOrder,
fn write_u128<T>(&mut self, n: u128) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned 128 bit integer to the underlying writer.
Sourceยงfn write_i128<T>(&mut self, n: i128) -> Result<(), Error>where
T: ByteOrder,
fn write_i128<T>(&mut self, n: i128) -> Result<(), Error>where
T: ByteOrder,
Writes a signed 128 bit integer to the underlying writer.
Sourceยงfn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
fn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned n-bytes integer to the underlying writer. Read more
Sourceยงfn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
fn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
Writes a signed n-bytes integer to the underlying writer. Read more
Sourceยงfn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
fn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
Writes an unsigned n-bytes integer to the underlying writer. Read more
Sourceยงfn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
fn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error>where
T: ByteOrder,
Writes a signed n-bytes integer to the underlying writer. Read more
Sourceยงimpl<W> WriteEndian<[f32]> for Wwhere
W: Write,
impl<W> WriteEndian<[f32]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[f32]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[f32]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[f64]> for Wwhere
W: Write,
impl<W> WriteEndian<[f64]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[f64]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[f64]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[i8]> for Wwhere
W: Write,
impl<W> WriteEndian<[i8]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[i8]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[i8]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[i16]> for Wwhere
W: Write,
impl<W> WriteEndian<[i16]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[i16]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[i16]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[i32]> for Wwhere
W: Write,
impl<W> WriteEndian<[i32]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[i32]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[i32]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[i64]> for Wwhere
W: Write,
impl<W> WriteEndian<[i64]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[i64]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[i64]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[i128]> for Wwhere
W: Write,
impl<W> WriteEndian<[i128]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[i128]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[i128]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[u8]> for Wwhere
W: Write,
impl<W> WriteEndian<[u8]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[u8]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[u8]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[u16]> for Wwhere
W: Write,
impl<W> WriteEndian<[u16]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[u16]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[u16]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[u32]> for Wwhere
W: Write,
impl<W> WriteEndian<[u32]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[u32]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[u32]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[u64]> for Wwhere
W: Write,
impl<W> WriteEndian<[u64]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[u64]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[u64]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<[u128]> for Wwhere
W: Write,
impl<W> WriteEndian<[u128]> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &[u128]) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &[u128]) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<f32> for Wwhere
W: Write,
impl<W> WriteEndian<f32> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &f32) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &f32) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<f64> for Wwhere
W: Write,
impl<W> WriteEndian<f64> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &f64) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &f64) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<i8> for Wwhere
W: Write,
impl<W> WriteEndian<i8> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &i8) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &i8) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<i16> for Wwhere
W: Write,
impl<W> WriteEndian<i16> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &i16) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &i16) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<i32> for Wwhere
W: Write,
impl<W> WriteEndian<i32> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &i32) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &i32) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<i64> for Wwhere
W: Write,
impl<W> WriteEndian<i64> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &i64) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &i64) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<i128> for Wwhere
W: Write,
impl<W> WriteEndian<i128> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &i128) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &i128) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<u8> for Wwhere
W: Write,
impl<W> WriteEndian<u8> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &u8) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &u8) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<u16> for Wwhere
W: Write,
impl<W> WriteEndian<u16> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &u16) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &u16) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<u32> for Wwhere
W: Write,
impl<W> WriteEndian<u32> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &u32) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &u32) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<u64> for Wwhere
W: Write,
impl<W> WriteEndian<u64> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &u64) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &u64) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<W> WriteEndian<u128> for Wwhere
W: Write,
impl<W> WriteEndian<u128> for Wwhere
W: Write,
Sourceยงfn write_as_little_endian(&mut self, value: &u128) -> Result<(), Error>
fn write_as_little_endian(&mut self, value: &u128) -> Result<(), Error>
Write the byte value of the specified reference, converting it to little endianness
Sourceยงimpl<T> ZByteReaderTrait for T
impl<T> ZByteReaderTrait for T
Sourceยงfn read_byte_no_error(&mut self) -> u8
fn read_byte_no_error(&mut self) -> u8
Read a single byte from the decoder and return
0 if we canโt read the byte, e.g because of EOF Read moreSourceยงfn read_exact_bytes(&mut self, buf: &mut [u8]) -> Result<(), ZByteIoError>
fn read_exact_bytes(&mut self, buf: &mut [u8]) -> Result<(), ZByteIoError>
Read exact bytes required to fill
buf or return an error if that isnโt possible Read moreSourceยงfn read_const_bytes<const N: usize>(
&mut self,
buf: &mut [u8; N],
) -> Result<(), ZByteIoError>
fn read_const_bytes<const N: usize>( &mut self, buf: &mut [u8; N], ) -> Result<(), ZByteIoError>
Read exact bytes required to fill
buf or return an error if that isnโt possible Read moreSourceยงfn read_const_bytes_no_error<const N: usize>(&mut self, buf: &mut [u8; N])
fn read_const_bytes_no_error<const N: usize>(&mut self, buf: &mut [u8; N])
Read exact bytes required to fill
buf or ignore buf entirely if you canโt fill it
due to an error like the inability to fill the buffer completely Read moreSourceยงfn read_bytes(&mut self, buf: &mut [u8]) -> Result<usize, ZByteIoError>
fn read_bytes(&mut self, buf: &mut [u8]) -> Result<usize, ZByteIoError>
Read bytes into
buf returning how many bytes you have read or an error if one occurred Read moreSourceยงfn peek_bytes(&mut self, buf: &mut [u8]) -> Result<usize, ZByteIoError>
fn peek_bytes(&mut self, buf: &mut [u8]) -> Result<usize, ZByteIoError>
Reads data into provided buffer but does not advance read position.
fn peek_exact_bytes(&mut self, buf: &mut [u8]) -> Result<(), ZByteIoError>
Sourceยงfn z_seek(&mut self, from: ZSeekFrom) -> Result<u64, ZByteIoError>
fn z_seek(&mut self, from: ZSeekFrom) -> Result<u64, ZByteIoError>
Seek into a new position from the buffer Read more
Sourceยงfn is_eof(&mut self) -> Result<bool, ZByteIoError>
fn is_eof(&mut self) -> Result<bool, ZByteIoError>
Report whether we are at the end of a stream. Read more
Sourceยงfn z_position(&mut self) -> Result<u64, ZByteIoError>
fn z_position(&mut self) -> Result<u64, ZByteIoError>
Return the current position of the inner cursor. Read more
Sourceยงfn read_remaining(&mut self, sink: &mut Vec<u8>) -> Result<usize, ZByteIoError>
fn read_remaining(&mut self, sink: &mut Vec<u8>) -> Result<usize, ZByteIoError>
Read all bytes remaining in this input to
sink until we hit eof Read moreSourceยงimpl<T> ZByteWriterTrait for Twhere
T: Write,
impl<T> ZByteWriterTrait for Twhere
T: Write,
Sourceยงfn write_bytes(&mut self, buf: &[u8]) -> Result<usize, ZByteIoError>
fn write_bytes(&mut self, buf: &[u8]) -> Result<usize, ZByteIoError>
Write some bytes into the sink returning number of bytes written or
an error if something bad happened Read more
Sourceยงfn write_all_bytes(&mut self, buf: &[u8]) -> Result<(), ZByteIoError>
fn write_all_bytes(&mut self, buf: &[u8]) -> Result<(), ZByteIoError>
Write all bytes to the buffer or return an error if something occurred Read more
Sourceยงfn write_const_bytes<const N: usize>(
&mut self,
buf: &[u8; N],
) -> Result<(), ZByteIoError>
fn write_const_bytes<const N: usize>( &mut self, buf: &[u8; N], ) -> Result<(), ZByteIoError>
Write a fixed number of bytes and error out if we canโt write the bytes Read more
Sourceยงfn flush_bytes(&mut self) -> Result<(), ZByteIoError>
fn flush_bytes(&mut self) -> Result<(), ZByteIoError>
Ensure bytes are written to the sink. Read more
Sourceยงfn reserve_capacity(&mut self, _: usize) -> Result<(), ZByteIoError>
fn reserve_capacity(&mut self, _: usize) -> Result<(), ZByteIoError>
A hint to tell the implementation how big of a size we expect the image to be
An implementation like in memory
Vec can use this to reserve additional memory to
prevent reallocation when encoding Read more