pub struct ChunkWriter<B: ?Sized>(/* private fields */);Expand description
A wrapper around any type that implements ChunkMut for improved ergonomics in generic code.
ChunkWriter provides a unified interface over different buffer types, making it easier to write
generic functions that accept various writable buffer types without requiring complex type
signatures or awkward reference patterns.
§Problem Solved
When writing generic functions that accept ChunkMut implementors, you often run into ergonomic
issues with reference types. For example, with &mut [u8], callers would need to pass
&mut &mut [u8] which is awkward and unintuitive.
§Solution
By using impl Into<ChunkWriter<B>> in your function signatures, callers can pass buffer types
naturally without extra reference wrapping:
use bufkit::{ChunkMut, ChunkWriter};
// Instead of this awkward signature:
fn encode_bad<B: ChunkMut>(buf: &mut B) { /* ... */ }
// Use this ergonomic signature:
fn encode_good<B: ChunkMut>(buf: impl Into<ChunkWriter<B>>) { /* ... */ }
// Now callers can write:
let mut buffer = [0u8; 64];
encode_good(&mut buffer[..]); // Natural - no double reference needed
encode_bad(&mut &mut buffer[..]); // Awkward - requires &mut &mut§Common Usage Pattern
This type is particularly useful for encoding/serialization APIs where you want to accept various buffer types:
use bufkit::{ChunkMut, ChunkWriter};
pub trait Encode {
fn encode<B: ChunkMut>(&self, buf: impl Into<ChunkWriter<B>>) -> Result<usize, Error>;
}
impl Encode for MyStruct {
fn encode<B: ChunkMut>(&self, buf: impl Into<ChunkWriter<B>>) -> Result<usize, Error> {
let mut buf = buf.into();
// Write to buf...
Ok(bytes_written)
}
}
// Usage is clean and intuitive:
let my_struct = MyStruct::new();
let mut array_buf = [0u8; 100];
my_struct.encode(&mut array_buf[..])?; // No &mut &mut needed§Type Flexibility
ChunkWriter can wrap any type that implements ChunkMut, including:
&mut [u8]- Fixed-size byte arrays- Other
ChunkMutimplementors
Implementations§
Source§impl<B: ?Sized> ChunkWriter<B>
impl<B: ?Sized> ChunkWriter<B>
Sourcepub const fn as_mut(&mut self) -> ChunkWriter<&mut B>
pub const fn as_mut(&mut self) -> ChunkWriter<&mut B>
Similar to Option::as_mut, converts &mut ChunkWriter<B> to ChunkWriter<&mut B>.
§Example
use bufkit::{ChunkMut, ChunkWriter};
let mut buf = [0u8; 24];
let mut write_buf = ChunkWriter::from(&mut buf[..]);
let _ = write_buf.as_mut();Sourcepub const fn as_ref(&self) -> ChunkWriter<&B>
pub const fn as_ref(&self) -> ChunkWriter<&B>
Similar to Option::as_ref, converts &ChunkWriter<B> to ChunkWriter<&B>.
§Example
use bufkit::{ChunkMut, ChunkWriter};
let mut buf = [0u8; 24];
let write_buf = ChunkWriter::from(&mut buf[..]);
let _ = write_buf.as_ref();Source§impl<B> ChunkWriter<B>
impl<B> ChunkWriter<B>
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Consumes the ChunkWriter and returns the underlying ChunkMut.
§Examples
use bufkit::{ChunkMut, ChunkWriter};
let mut buf = [0u8; 24];
let mut write_buf = ChunkWriter::from(&mut buf[..]);
let _ = write_buf.into_inner();Trait Implementations§
Source§impl<B: ?Sized + ChunkMut> ChunkMut for ChunkWriter<B>
impl<B: ?Sized + ChunkMut> ChunkMut for ChunkWriter<B>
Source§fn has_remaining_mut(&self) -> bool
fn has_remaining_mut(&self) -> bool
true if the buffer has available space for writing. Read moreSource§fn remaining_mut(&self) -> usize
fn remaining_mut(&self) -> usize
Source§fn advance_mut(&mut self, cnt: usize)
fn advance_mut(&mut self, cnt: usize)
Source§fn try_advance_mut(&mut self, cnt: usize) -> Result<(), TryAdvanceError>
fn try_advance_mut(&mut self, cnt: usize) -> Result<(), TryAdvanceError>
Source§fn truncate_mut(&mut self, new_len: usize)
fn truncate_mut(&mut self, new_len: usize)
len bytes. Read moreSource§fn buffer_mut(&mut self) -> &mut [u8] ⓘ
fn buffer_mut(&mut self) -> &mut [u8] ⓘ
Source§fn fill(&mut self, value: u8)
fn fill(&mut self, value: u8)
Source§fn prefix_mut(&mut self, len: usize) -> &mut [u8] ⓘ
fn prefix_mut(&mut self, len: usize) -> &mut [u8] ⓘ
len bytes of the buffer. Read moreSource§fn prefix_mut_checked(&mut self, len: usize) -> Option<&mut [u8]>
fn prefix_mut_checked(&mut self, len: usize) -> Option<&mut [u8]>
len bytes of the buffer. Read moreSource§fn suffix_mut(&mut self, len: usize) -> &mut [u8] ⓘ
fn suffix_mut(&mut self, len: usize) -> &mut [u8] ⓘ
len bytes of the buffer. Read moreSource§fn suffix_mut_checked(&mut self, len: usize) -> Option<&mut [u8]>
fn suffix_mut_checked(&mut self, len: usize) -> Option<&mut [u8]>
len bytes of the buffer. Read moreSource§fn split_at_mut(&mut self, mid: usize) -> (&mut [u8], &mut [u8])
fn split_at_mut(&mut self, mid: usize) -> (&mut [u8], &mut [u8])
Source§fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut [u8], &mut [u8])>
fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut [u8], &mut [u8])>
Source§fn put_slice(&mut self, slice: &[u8]) -> usize
fn put_slice(&mut self, slice: &[u8]) -> usize
Source§fn put_slice_checked(&mut self, slice: &[u8]) -> Option<usize>
fn put_slice_checked(&mut self, slice: &[u8]) -> Option<usize>
Source§fn try_put_slice(&mut self, slice: &[u8]) -> Result<usize, TryPutError>
fn try_put_slice(&mut self, slice: &[u8]) -> Result<usize, TryPutError>
Source§fn put_slice_at(&mut self, slice: &[u8], offset: usize) -> usize
fn put_slice_at(&mut self, slice: &[u8], offset: usize) -> usize
Source§fn put_slice_at_checked(&mut self, slice: &[u8], offset: usize) -> Option<usize>
fn put_slice_at_checked(&mut self, slice: &[u8], offset: usize) -> Option<usize>
Source§fn try_put_slice_at(
&mut self,
slice: &[u8],
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_slice_at( &mut self, slice: &[u8], offset: usize, ) -> Result<usize, TryPutAtError>
Source§fn put_u8(&mut self, value: u8) -> usize
fn put_u8(&mut self, value: u8) -> usize
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u8_checked(&mut self, value: u8) -> Option<usize>
fn put_u8_checked(&mut self, value: u8) -> Option<usize>
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u8(&mut self, value: u8) -> Result<usize, TryPutError>
fn try_put_u8(&mut self, value: u8) -> Result<usize, TryPutError>
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i8(&mut self, value: i8) -> usize
fn put_i8(&mut self, value: i8) -> usize
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i8_checked(&mut self, value: i8) -> Option<usize>
fn put_i8_checked(&mut self, value: i8) -> Option<usize>
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i8(&mut self, value: i8) -> Result<usize, TryPutError>
fn try_put_i8(&mut self, value: i8) -> Result<usize, TryPutError>
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u8_at(&mut self, value: u8, offset: usize) -> usize
fn put_u8_at(&mut self, value: u8, offset: usize) -> usize
u8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u8_at_checked(&mut self, value: u8, offset: usize) -> Option<usize>
fn put_u8_at_checked(&mut self, value: u8, offset: usize) -> Option<usize>
u8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u8_at(
&mut self,
value: u8,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u8_at( &mut self, value: u8, offset: usize, ) -> Result<usize, TryPutAtError>
u8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i8_at(&mut self, value: i8, offset: usize) -> usize
fn put_i8_at(&mut self, value: i8, offset: usize) -> usize
i8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i8_at_checked(&mut self, value: i8, offset: usize) -> Option<usize>
fn put_i8_at_checked(&mut self, value: i8, offset: usize) -> Option<usize>
i8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i8_at(
&mut self,
value: i8,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i8_at( &mut self, value: i8, offset: usize, ) -> Result<usize, TryPutAtError>
i8 value to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_le_at(&mut self, value: u16, offset: usize) -> usize
fn put_u16_le_at(&mut self, value: u16, offset: usize) -> usize
u16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_le_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
fn put_u16_le_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
u16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u16_le_at(
&mut self,
value: u16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u16_le_at( &mut self, value: u16, offset: usize, ) -> Result<usize, TryPutAtError>
u16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_be_at(&mut self, value: u16, offset: usize) -> usize
fn put_u16_be_at(&mut self, value: u16, offset: usize) -> usize
u16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_be_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
fn put_u16_be_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
u16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u16_be_at(
&mut self,
value: u16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u16_be_at( &mut self, value: u16, offset: usize, ) -> Result<usize, TryPutAtError>
u16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_ne_at(&mut self, value: u16, offset: usize) -> usize
fn put_u16_ne_at(&mut self, value: u16, offset: usize) -> usize
u16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_ne_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
fn put_u16_ne_at_checked(&mut self, value: u16, offset: usize) -> Option<usize>
u16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u16_ne_at(
&mut self,
value: u16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u16_ne_at( &mut self, value: u16, offset: usize, ) -> Result<usize, TryPutAtError>
u16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u16_le(&mut self, value: u16) -> usize
fn put_u16_le(&mut self, value: u16) -> usize
u16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u16_le_checked(&mut self, value: u16) -> Option<usize>
fn put_u16_le_checked(&mut self, value: u16) -> Option<usize>
u16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u16_le(&mut self, value: u16) -> Result<usize, TryPutError>
fn try_put_u16_le(&mut self, value: u16) -> Result<usize, TryPutError>
u16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u16_be(&mut self, value: u16) -> usize
fn put_u16_be(&mut self, value: u16) -> usize
u16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u16_be_checked(&mut self, value: u16) -> Option<usize>
fn put_u16_be_checked(&mut self, value: u16) -> Option<usize>
u16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u16_be(&mut self, value: u16) -> Result<usize, TryPutError>
fn try_put_u16_be(&mut self, value: u16) -> Result<usize, TryPutError>
u16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u16_ne(&mut self, value: u16) -> usize
fn put_u16_ne(&mut self, value: u16) -> usize
u16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u16_ne_checked(&mut self, value: u16) -> Option<usize>
fn put_u16_ne_checked(&mut self, value: u16) -> Option<usize>
u16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u16_ne(&mut self, value: u16) -> Result<usize, TryPutError>
fn try_put_u16_ne(&mut self, value: u16) -> Result<usize, TryPutError>
u16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_le_at(&mut self, value: u32, offset: usize) -> usize
fn put_u32_le_at(&mut self, value: u32, offset: usize) -> usize
u32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_le_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
fn put_u32_le_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
u32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u32_le_at(
&mut self,
value: u32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u32_le_at( &mut self, value: u32, offset: usize, ) -> Result<usize, TryPutAtError>
u32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_be_at(&mut self, value: u32, offset: usize) -> usize
fn put_u32_be_at(&mut self, value: u32, offset: usize) -> usize
u32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_be_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
fn put_u32_be_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
u32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u32_be_at(
&mut self,
value: u32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u32_be_at( &mut self, value: u32, offset: usize, ) -> Result<usize, TryPutAtError>
u32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_ne_at(&mut self, value: u32, offset: usize) -> usize
fn put_u32_ne_at(&mut self, value: u32, offset: usize) -> usize
u32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_ne_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
fn put_u32_ne_at_checked(&mut self, value: u32, offset: usize) -> Option<usize>
u32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u32_ne_at(
&mut self,
value: u32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u32_ne_at( &mut self, value: u32, offset: usize, ) -> Result<usize, TryPutAtError>
u32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u32_le(&mut self, value: u32) -> usize
fn put_u32_le(&mut self, value: u32) -> usize
u32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_le_checked(&mut self, value: u32) -> Option<usize>
fn put_u32_le_checked(&mut self, value: u32) -> Option<usize>
u32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u32_le(&mut self, value: u32) -> Result<usize, TryPutError>
fn try_put_u32_le(&mut self, value: u32) -> Result<usize, TryPutError>
u32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_be(&mut self, value: u32) -> usize
fn put_u32_be(&mut self, value: u32) -> usize
u32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_be_checked(&mut self, value: u32) -> Option<usize>
fn put_u32_be_checked(&mut self, value: u32) -> Option<usize>
u32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u32_be(&mut self, value: u32) -> Result<usize, TryPutError>
fn try_put_u32_be(&mut self, value: u32) -> Result<usize, TryPutError>
u32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_ne(&mut self, value: u32) -> usize
fn put_u32_ne(&mut self, value: u32) -> usize
u32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u32_ne_checked(&mut self, value: u32) -> Option<usize>
fn put_u32_ne_checked(&mut self, value: u32) -> Option<usize>
u32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u32_ne(&mut self, value: u32) -> Result<usize, TryPutError>
fn try_put_u32_ne(&mut self, value: u32) -> Result<usize, TryPutError>
u32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_le_at(&mut self, value: u64, offset: usize) -> usize
fn put_u64_le_at(&mut self, value: u64, offset: usize) -> usize
u64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_le_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
fn put_u64_le_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
u64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u64_le_at(
&mut self,
value: u64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u64_le_at( &mut self, value: u64, offset: usize, ) -> Result<usize, TryPutAtError>
u64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_be_at(&mut self, value: u64, offset: usize) -> usize
fn put_u64_be_at(&mut self, value: u64, offset: usize) -> usize
u64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_be_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
fn put_u64_be_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
u64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u64_be_at(
&mut self,
value: u64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u64_be_at( &mut self, value: u64, offset: usize, ) -> Result<usize, TryPutAtError>
u64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_ne_at(&mut self, value: u64, offset: usize) -> usize
fn put_u64_ne_at(&mut self, value: u64, offset: usize) -> usize
u64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_ne_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
fn put_u64_ne_at_checked(&mut self, value: u64, offset: usize) -> Option<usize>
u64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u64_ne_at(
&mut self,
value: u64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u64_ne_at( &mut self, value: u64, offset: usize, ) -> Result<usize, TryPutAtError>
u64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u64_le(&mut self, value: u64) -> usize
fn put_u64_le(&mut self, value: u64) -> usize
u64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_le_checked(&mut self, value: u64) -> Option<usize>
fn put_u64_le_checked(&mut self, value: u64) -> Option<usize>
u64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u64_le(&mut self, value: u64) -> Result<usize, TryPutError>
fn try_put_u64_le(&mut self, value: u64) -> Result<usize, TryPutError>
u64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_be(&mut self, value: u64) -> usize
fn put_u64_be(&mut self, value: u64) -> usize
u64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_be_checked(&mut self, value: u64) -> Option<usize>
fn put_u64_be_checked(&mut self, value: u64) -> Option<usize>
u64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u64_be(&mut self, value: u64) -> Result<usize, TryPutError>
fn try_put_u64_be(&mut self, value: u64) -> Result<usize, TryPutError>
u64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_ne(&mut self, value: u64) -> usize
fn put_u64_ne(&mut self, value: u64) -> usize
u64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u64_ne_checked(&mut self, value: u64) -> Option<usize>
fn put_u64_ne_checked(&mut self, value: u64) -> Option<usize>
u64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u64_ne(&mut self, value: u64) -> Result<usize, TryPutError>
fn try_put_u64_ne(&mut self, value: u64) -> Result<usize, TryPutError>
u64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_le_at(&mut self, value: u128, offset: usize) -> usize
fn put_u128_le_at(&mut self, value: u128, offset: usize) -> usize
u128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_le_at_checked(
&mut self,
value: u128,
offset: usize,
) -> Option<usize>
fn put_u128_le_at_checked( &mut self, value: u128, offset: usize, ) -> Option<usize>
u128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u128_le_at(
&mut self,
value: u128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u128_le_at( &mut self, value: u128, offset: usize, ) -> Result<usize, TryPutAtError>
u128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_be_at(&mut self, value: u128, offset: usize) -> usize
fn put_u128_be_at(&mut self, value: u128, offset: usize) -> usize
u128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_be_at_checked(
&mut self,
value: u128,
offset: usize,
) -> Option<usize>
fn put_u128_be_at_checked( &mut self, value: u128, offset: usize, ) -> Option<usize>
u128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u128_be_at(
&mut self,
value: u128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u128_be_at( &mut self, value: u128, offset: usize, ) -> Result<usize, TryPutAtError>
u128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_ne_at(&mut self, value: u128, offset: usize) -> usize
fn put_u128_ne_at(&mut self, value: u128, offset: usize) -> usize
u128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_ne_at_checked(
&mut self,
value: u128,
offset: usize,
) -> Option<usize>
fn put_u128_ne_at_checked( &mut self, value: u128, offset: usize, ) -> Option<usize>
u128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_u128_ne_at(
&mut self,
value: u128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_u128_ne_at( &mut self, value: u128, offset: usize, ) -> Result<usize, TryPutAtError>
u128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_u128_le(&mut self, value: u128) -> usize
fn put_u128_le(&mut self, value: u128) -> usize
u128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_le_checked(&mut self, value: u128) -> Option<usize>
fn put_u128_le_checked(&mut self, value: u128) -> Option<usize>
u128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u128_le(&mut self, value: u128) -> Result<usize, TryPutError>
fn try_put_u128_le(&mut self, value: u128) -> Result<usize, TryPutError>
u128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_be(&mut self, value: u128) -> usize
fn put_u128_be(&mut self, value: u128) -> usize
u128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_be_checked(&mut self, value: u128) -> Option<usize>
fn put_u128_be_checked(&mut self, value: u128) -> Option<usize>
u128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u128_be(&mut self, value: u128) -> Result<usize, TryPutError>
fn try_put_u128_be(&mut self, value: u128) -> Result<usize, TryPutError>
u128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_ne(&mut self, value: u128) -> usize
fn put_u128_ne(&mut self, value: u128) -> usize
u128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_u128_ne_checked(&mut self, value: u128) -> Option<usize>
fn put_u128_ne_checked(&mut self, value: u128) -> Option<usize>
u128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_u128_ne(&mut self, value: u128) -> Result<usize, TryPutError>
fn try_put_u128_ne(&mut self, value: u128) -> Result<usize, TryPutError>
u128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_le_at(&mut self, value: i16, offset: usize) -> usize
fn put_i16_le_at(&mut self, value: i16, offset: usize) -> usize
i16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_le_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
fn put_i16_le_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
i16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i16_le_at(
&mut self,
value: i16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i16_le_at( &mut self, value: i16, offset: usize, ) -> Result<usize, TryPutAtError>
i16 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_be_at(&mut self, value: i16, offset: usize) -> usize
fn put_i16_be_at(&mut self, value: i16, offset: usize) -> usize
i16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_be_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
fn put_i16_be_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
i16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i16_be_at(
&mut self,
value: i16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i16_be_at( &mut self, value: i16, offset: usize, ) -> Result<usize, TryPutAtError>
i16 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_ne_at(&mut self, value: i16, offset: usize) -> usize
fn put_i16_ne_at(&mut self, value: i16, offset: usize) -> usize
i16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_ne_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
fn put_i16_ne_at_checked(&mut self, value: i16, offset: usize) -> Option<usize>
i16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i16_ne_at(
&mut self,
value: i16,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i16_ne_at( &mut self, value: i16, offset: usize, ) -> Result<usize, TryPutAtError>
i16 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i16_le(&mut self, value: i16) -> usize
fn put_i16_le(&mut self, value: i16) -> usize
i16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_le_checked(&mut self, value: i16) -> Option<usize>
fn put_i16_le_checked(&mut self, value: i16) -> Option<usize>
i16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i16_le(&mut self, value: i16) -> Result<usize, TryPutError>
fn try_put_i16_le(&mut self, value: i16) -> Result<usize, TryPutError>
i16 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_be(&mut self, value: i16) -> usize
fn put_i16_be(&mut self, value: i16) -> usize
i16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_be_checked(&mut self, value: i16) -> Option<usize>
fn put_i16_be_checked(&mut self, value: i16) -> Option<usize>
i16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i16_be(&mut self, value: i16) -> Result<usize, TryPutError>
fn try_put_i16_be(&mut self, value: i16) -> Result<usize, TryPutError>
i16 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_ne(&mut self, value: i16) -> usize
fn put_i16_ne(&mut self, value: i16) -> usize
i16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i16_ne_checked(&mut self, value: i16) -> Option<usize>
fn put_i16_ne_checked(&mut self, value: i16) -> Option<usize>
i16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i16_ne(&mut self, value: i16) -> Result<usize, TryPutError>
fn try_put_i16_ne(&mut self, value: i16) -> Result<usize, TryPutError>
i16 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_le_at(&mut self, value: i32, offset: usize) -> usize
fn put_i32_le_at(&mut self, value: i32, offset: usize) -> usize
i32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_le_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
fn put_i32_le_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
i32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i32_le_at(
&mut self,
value: i32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i32_le_at( &mut self, value: i32, offset: usize, ) -> Result<usize, TryPutAtError>
i32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_be_at(&mut self, value: i32, offset: usize) -> usize
fn put_i32_be_at(&mut self, value: i32, offset: usize) -> usize
i32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_be_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
fn put_i32_be_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
i32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i32_be_at(
&mut self,
value: i32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i32_be_at( &mut self, value: i32, offset: usize, ) -> Result<usize, TryPutAtError>
i32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_ne_at(&mut self, value: i32, offset: usize) -> usize
fn put_i32_ne_at(&mut self, value: i32, offset: usize) -> usize
i32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_ne_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
fn put_i32_ne_at_checked(&mut self, value: i32, offset: usize) -> Option<usize>
i32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i32_ne_at(
&mut self,
value: i32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i32_ne_at( &mut self, value: i32, offset: usize, ) -> Result<usize, TryPutAtError>
i32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i32_le(&mut self, value: i32) -> usize
fn put_i32_le(&mut self, value: i32) -> usize
i32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_le_checked(&mut self, value: i32) -> Option<usize>
fn put_i32_le_checked(&mut self, value: i32) -> Option<usize>
i32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i32_le(&mut self, value: i32) -> Result<usize, TryPutError>
fn try_put_i32_le(&mut self, value: i32) -> Result<usize, TryPutError>
i32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_be(&mut self, value: i32) -> usize
fn put_i32_be(&mut self, value: i32) -> usize
i32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_be_checked(&mut self, value: i32) -> Option<usize>
fn put_i32_be_checked(&mut self, value: i32) -> Option<usize>
i32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i32_be(&mut self, value: i32) -> Result<usize, TryPutError>
fn try_put_i32_be(&mut self, value: i32) -> Result<usize, TryPutError>
i32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_ne(&mut self, value: i32) -> usize
fn put_i32_ne(&mut self, value: i32) -> usize
i32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i32_ne_checked(&mut self, value: i32) -> Option<usize>
fn put_i32_ne_checked(&mut self, value: i32) -> Option<usize>
i32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i32_ne(&mut self, value: i32) -> Result<usize, TryPutError>
fn try_put_i32_ne(&mut self, value: i32) -> Result<usize, TryPutError>
i32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_le_at(&mut self, value: i64, offset: usize) -> usize
fn put_i64_le_at(&mut self, value: i64, offset: usize) -> usize
i64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_le_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
fn put_i64_le_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
i64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i64_le_at(
&mut self,
value: i64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i64_le_at( &mut self, value: i64, offset: usize, ) -> Result<usize, TryPutAtError>
i64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_be_at(&mut self, value: i64, offset: usize) -> usize
fn put_i64_be_at(&mut self, value: i64, offset: usize) -> usize
i64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_be_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
fn put_i64_be_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
i64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i64_be_at(
&mut self,
value: i64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i64_be_at( &mut self, value: i64, offset: usize, ) -> Result<usize, TryPutAtError>
i64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_ne_at(&mut self, value: i64, offset: usize) -> usize
fn put_i64_ne_at(&mut self, value: i64, offset: usize) -> usize
i64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_ne_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
fn put_i64_ne_at_checked(&mut self, value: i64, offset: usize) -> Option<usize>
i64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i64_ne_at(
&mut self,
value: i64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i64_ne_at( &mut self, value: i64, offset: usize, ) -> Result<usize, TryPutAtError>
i64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i64_le(&mut self, value: i64) -> usize
fn put_i64_le(&mut self, value: i64) -> usize
i64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_le_checked(&mut self, value: i64) -> Option<usize>
fn put_i64_le_checked(&mut self, value: i64) -> Option<usize>
i64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i64_le(&mut self, value: i64) -> Result<usize, TryPutError>
fn try_put_i64_le(&mut self, value: i64) -> Result<usize, TryPutError>
i64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_be(&mut self, value: i64) -> usize
fn put_i64_be(&mut self, value: i64) -> usize
i64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_be_checked(&mut self, value: i64) -> Option<usize>
fn put_i64_be_checked(&mut self, value: i64) -> Option<usize>
i64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i64_be(&mut self, value: i64) -> Result<usize, TryPutError>
fn try_put_i64_be(&mut self, value: i64) -> Result<usize, TryPutError>
i64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_ne(&mut self, value: i64) -> usize
fn put_i64_ne(&mut self, value: i64) -> usize
i64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i64_ne_checked(&mut self, value: i64) -> Option<usize>
fn put_i64_ne_checked(&mut self, value: i64) -> Option<usize>
i64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i64_ne(&mut self, value: i64) -> Result<usize, TryPutError>
fn try_put_i64_ne(&mut self, value: i64) -> Result<usize, TryPutError>
i64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_le_at(&mut self, value: i128, offset: usize) -> usize
fn put_i128_le_at(&mut self, value: i128, offset: usize) -> usize
i128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_le_at_checked(
&mut self,
value: i128,
offset: usize,
) -> Option<usize>
fn put_i128_le_at_checked( &mut self, value: i128, offset: usize, ) -> Option<usize>
i128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i128_le_at(
&mut self,
value: i128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i128_le_at( &mut self, value: i128, offset: usize, ) -> Result<usize, TryPutAtError>
i128 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_be_at(&mut self, value: i128, offset: usize) -> usize
fn put_i128_be_at(&mut self, value: i128, offset: usize) -> usize
i128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_be_at_checked(
&mut self,
value: i128,
offset: usize,
) -> Option<usize>
fn put_i128_be_at_checked( &mut self, value: i128, offset: usize, ) -> Option<usize>
i128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i128_be_at(
&mut self,
value: i128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i128_be_at( &mut self, value: i128, offset: usize, ) -> Result<usize, TryPutAtError>
i128 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_ne_at(&mut self, value: i128, offset: usize) -> usize
fn put_i128_ne_at(&mut self, value: i128, offset: usize) -> usize
i128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_ne_at_checked(
&mut self,
value: i128,
offset: usize,
) -> Option<usize>
fn put_i128_ne_at_checked( &mut self, value: i128, offset: usize, ) -> Option<usize>
i128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_i128_ne_at(
&mut self,
value: i128,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_i128_ne_at( &mut self, value: i128, offset: usize, ) -> Result<usize, TryPutAtError>
i128 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_i128_le(&mut self, value: i128) -> usize
fn put_i128_le(&mut self, value: i128) -> usize
i128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_le_checked(&mut self, value: i128) -> Option<usize>
fn put_i128_le_checked(&mut self, value: i128) -> Option<usize>
i128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i128_le(&mut self, value: i128) -> Result<usize, TryPutError>
fn try_put_i128_le(&mut self, value: i128) -> Result<usize, TryPutError>
i128 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_be(&mut self, value: i128) -> usize
fn put_i128_be(&mut self, value: i128) -> usize
i128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_be_checked(&mut self, value: i128) -> Option<usize>
fn put_i128_be_checked(&mut self, value: i128) -> Option<usize>
i128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i128_be(&mut self, value: i128) -> Result<usize, TryPutError>
fn try_put_i128_be(&mut self, value: i128) -> Result<usize, TryPutError>
i128 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_ne(&mut self, value: i128) -> usize
fn put_i128_ne(&mut self, value: i128) -> usize
i128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_i128_ne_checked(&mut self, value: i128) -> Option<usize>
fn put_i128_ne_checked(&mut self, value: i128) -> Option<usize>
i128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_i128_ne(&mut self, value: i128) -> Result<usize, TryPutError>
fn try_put_i128_ne(&mut self, value: i128) -> Result<usize, TryPutError>
i128 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_le_at(&mut self, value: f32, offset: usize) -> usize
fn put_f32_le_at(&mut self, value: f32, offset: usize) -> usize
f32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_le_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
fn put_f32_le_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
f32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f32_le_at(
&mut self,
value: f32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f32_le_at( &mut self, value: f32, offset: usize, ) -> Result<usize, TryPutAtError>
f32 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_be_at(&mut self, value: f32, offset: usize) -> usize
fn put_f32_be_at(&mut self, value: f32, offset: usize) -> usize
f32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_be_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
fn put_f32_be_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
f32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f32_be_at(
&mut self,
value: f32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f32_be_at( &mut self, value: f32, offset: usize, ) -> Result<usize, TryPutAtError>
f32 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_ne_at(&mut self, value: f32, offset: usize) -> usize
fn put_f32_ne_at(&mut self, value: f32, offset: usize) -> usize
f32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_ne_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
fn put_f32_ne_at_checked(&mut self, value: f32, offset: usize) -> Option<usize>
f32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f32_ne_at(
&mut self,
value: f32,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f32_ne_at( &mut self, value: f32, offset: usize, ) -> Result<usize, TryPutAtError>
f32 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f32_le(&mut self, value: f32) -> usize
fn put_f32_le(&mut self, value: f32) -> usize
f32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_le_checked(&mut self, value: f32) -> Option<usize>
fn put_f32_le_checked(&mut self, value: f32) -> Option<usize>
f32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f32_le(&mut self, value: f32) -> Result<usize, TryPutError>
fn try_put_f32_le(&mut self, value: f32) -> Result<usize, TryPutError>
f32 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_be(&mut self, value: f32) -> usize
fn put_f32_be(&mut self, value: f32) -> usize
f32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_be_checked(&mut self, value: f32) -> Option<usize>
fn put_f32_be_checked(&mut self, value: f32) -> Option<usize>
f32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f32_be(&mut self, value: f32) -> Result<usize, TryPutError>
fn try_put_f32_be(&mut self, value: f32) -> Result<usize, TryPutError>
f32 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_ne(&mut self, value: f32) -> usize
fn put_f32_ne(&mut self, value: f32) -> usize
f32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f32_ne_checked(&mut self, value: f32) -> Option<usize>
fn put_f32_ne_checked(&mut self, value: f32) -> Option<usize>
f32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f32_ne(&mut self, value: f32) -> Result<usize, TryPutError>
fn try_put_f32_ne(&mut self, value: f32) -> Result<usize, TryPutError>
f32 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_le_at(&mut self, value: f64, offset: usize) -> usize
fn put_f64_le_at(&mut self, value: f64, offset: usize) -> usize
f64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_le_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
fn put_f64_le_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
f64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f64_le_at(
&mut self,
value: f64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f64_le_at( &mut self, value: f64, offset: usize, ) -> Result<usize, TryPutAtError>
f64 value in little-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_be_at(&mut self, value: f64, offset: usize) -> usize
fn put_f64_be_at(&mut self, value: f64, offset: usize) -> usize
f64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_be_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
fn put_f64_be_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
f64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f64_be_at(
&mut self,
value: f64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f64_be_at( &mut self, value: f64, offset: usize, ) -> Result<usize, TryPutAtError>
f64 value in big-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_ne_at(&mut self, value: f64, offset: usize) -> usize
fn put_f64_ne_at(&mut self, value: f64, offset: usize) -> usize
f64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_ne_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
fn put_f64_ne_at_checked(&mut self, value: f64, offset: usize) -> Option<usize>
f64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn try_put_f64_ne_at(
&mut self,
value: f64,
offset: usize,
) -> Result<usize, TryPutAtError>
fn try_put_f64_ne_at( &mut self, value: f64, offset: usize, ) -> Result<usize, TryPutAtError>
f64 value in native-endian byte order to the buffer at the specified offset without advancing the internal cursor. Read moreSource§fn put_f64_le(&mut self, value: f64) -> usize
fn put_f64_le(&mut self, value: f64) -> usize
f64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_le_checked(&mut self, value: f64) -> Option<usize>
fn put_f64_le_checked(&mut self, value: f64) -> Option<usize>
f64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f64_le(&mut self, value: f64) -> Result<usize, TryPutError>
fn try_put_f64_le(&mut self, value: f64) -> Result<usize, TryPutError>
f64 value in little-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_be(&mut self, value: f64) -> usize
fn put_f64_be(&mut self, value: f64) -> usize
f64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_be_checked(&mut self, value: f64) -> Option<usize>
fn put_f64_be_checked(&mut self, value: f64) -> Option<usize>
f64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f64_be(&mut self, value: f64) -> Result<usize, TryPutError>
fn try_put_f64_be(&mut self, value: f64) -> Result<usize, TryPutError>
f64 value in big-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_ne(&mut self, value: f64) -> usize
fn put_f64_ne(&mut self, value: f64) -> usize
f64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn put_f64_ne_checked(&mut self, value: f64) -> Option<usize>
fn put_f64_ne_checked(&mut self, value: f64) -> Option<usize>
f64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_put_f64_ne(&mut self, value: f64) -> Result<usize, TryPutError>
fn try_put_f64_ne(&mut self, value: f64) -> Result<usize, TryPutError>
f64 value in native-endian byte order to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn write_slice(&mut self, slice: &[u8]) -> usize
fn write_slice(&mut self, slice: &[u8]) -> usize
Source§fn write_slice_checked(&mut self, slice: &[u8]) -> Option<usize>
fn write_slice_checked(&mut self, slice: &[u8]) -> Option<usize>
Source§fn try_write_slice(&mut self, slice: &[u8]) -> Result<usize, TryWriteError>
fn try_write_slice(&mut self, slice: &[u8]) -> Result<usize, TryWriteError>
Source§fn write_u8(&mut self, value: u8) -> usize
fn write_u8(&mut self, value: u8) -> usize
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn write_u8_checked(&mut self, value: u8) -> Option<usize>
fn write_u8_checked(&mut self, value: u8) -> Option<usize>
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_write_u8(&mut self, value: u8) -> Result<usize, TryWriteError>
fn try_write_u8(&mut self, value: u8) -> Result<usize, TryWriteError>
u8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn write_i8(&mut self, value: i8) -> usize
fn write_i8(&mut self, value: i8) -> usize
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn write_i8_checked(&mut self, value: i8) -> Option<usize>
fn write_i8_checked(&mut self, value: i8) -> Option<usize>
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn try_write_i8(&mut self, value: i8) -> Result<usize, TryWriteError>
fn try_write_i8(&mut self, value: i8) -> Result<usize, TryWriteError>
i8 value to the beginning of the buffer without advancing the internal cursor. Read moreSource§fn write_u16_le(&mut self, value: u16) -> usize
fn write_u16_le(&mut self, value: u16) -> usize
u16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u16_le_checked(&mut self, value: u16) -> Option<usize>
fn write_u16_le_checked(&mut self, value: u16) -> Option<usize>
u16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u16_le(&mut self, value: u16) -> Result<usize, TryWriteError>
fn try_write_u16_le(&mut self, value: u16) -> Result<usize, TryWriteError>
u16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u16_be(&mut self, value: u16) -> usize
fn write_u16_be(&mut self, value: u16) -> usize
u16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u16_be_checked(&mut self, value: u16) -> Option<usize>
fn write_u16_be_checked(&mut self, value: u16) -> Option<usize>
u16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u16_be(&mut self, value: u16) -> Result<usize, TryWriteError>
fn try_write_u16_be(&mut self, value: u16) -> Result<usize, TryWriteError>
u16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u16_ne(&mut self, value: u16) -> usize
fn write_u16_ne(&mut self, value: u16) -> usize
u16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u16_ne_checked(&mut self, value: u16) -> Option<usize>
fn write_u16_ne_checked(&mut self, value: u16) -> Option<usize>
u16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u16_ne(&mut self, value: u16) -> Result<usize, TryWriteError>
fn try_write_u16_ne(&mut self, value: u16) -> Result<usize, TryWriteError>
u16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_le(&mut self, value: u32) -> usize
fn write_u32_le(&mut self, value: u32) -> usize
u32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_le_checked(&mut self, value: u32) -> Option<usize>
fn write_u32_le_checked(&mut self, value: u32) -> Option<usize>
u32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u32_le(&mut self, value: u32) -> Result<usize, TryWriteError>
fn try_write_u32_le(&mut self, value: u32) -> Result<usize, TryWriteError>
u32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_be(&mut self, value: u32) -> usize
fn write_u32_be(&mut self, value: u32) -> usize
u32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_be_checked(&mut self, value: u32) -> Option<usize>
fn write_u32_be_checked(&mut self, value: u32) -> Option<usize>
u32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u32_be(&mut self, value: u32) -> Result<usize, TryWriteError>
fn try_write_u32_be(&mut self, value: u32) -> Result<usize, TryWriteError>
u32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_ne(&mut self, value: u32) -> usize
fn write_u32_ne(&mut self, value: u32) -> usize
u32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u32_ne_checked(&mut self, value: u32) -> Option<usize>
fn write_u32_ne_checked(&mut self, value: u32) -> Option<usize>
u32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u32_ne(&mut self, value: u32) -> Result<usize, TryWriteError>
fn try_write_u32_ne(&mut self, value: u32) -> Result<usize, TryWriteError>
u32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_le(&mut self, value: u64) -> usize
fn write_u64_le(&mut self, value: u64) -> usize
u64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_le_checked(&mut self, value: u64) -> Option<usize>
fn write_u64_le_checked(&mut self, value: u64) -> Option<usize>
u64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u64_le(&mut self, value: u64) -> Result<usize, TryWriteError>
fn try_write_u64_le(&mut self, value: u64) -> Result<usize, TryWriteError>
u64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_be(&mut self, value: u64) -> usize
fn write_u64_be(&mut self, value: u64) -> usize
u64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_be_checked(&mut self, value: u64) -> Option<usize>
fn write_u64_be_checked(&mut self, value: u64) -> Option<usize>
u64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u64_be(&mut self, value: u64) -> Result<usize, TryWriteError>
fn try_write_u64_be(&mut self, value: u64) -> Result<usize, TryWriteError>
u64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_ne(&mut self, value: u64) -> usize
fn write_u64_ne(&mut self, value: u64) -> usize
u64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u64_ne_checked(&mut self, value: u64) -> Option<usize>
fn write_u64_ne_checked(&mut self, value: u64) -> Option<usize>
u64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u64_ne(&mut self, value: u64) -> Result<usize, TryWriteError>
fn try_write_u64_ne(&mut self, value: u64) -> Result<usize, TryWriteError>
u64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_le(&mut self, value: u128) -> usize
fn write_u128_le(&mut self, value: u128) -> usize
u128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_le_checked(&mut self, value: u128) -> Option<usize>
fn write_u128_le_checked(&mut self, value: u128) -> Option<usize>
u128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u128_le(&mut self, value: u128) -> Result<usize, TryWriteError>
fn try_write_u128_le(&mut self, value: u128) -> Result<usize, TryWriteError>
u128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_be(&mut self, value: u128) -> usize
fn write_u128_be(&mut self, value: u128) -> usize
u128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_be_checked(&mut self, value: u128) -> Option<usize>
fn write_u128_be_checked(&mut self, value: u128) -> Option<usize>
u128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u128_be(&mut self, value: u128) -> Result<usize, TryWriteError>
fn try_write_u128_be(&mut self, value: u128) -> Result<usize, TryWriteError>
u128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_ne(&mut self, value: u128) -> usize
fn write_u128_ne(&mut self, value: u128) -> usize
u128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_u128_ne_checked(&mut self, value: u128) -> Option<usize>
fn write_u128_ne_checked(&mut self, value: u128) -> Option<usize>
u128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_u128_ne(&mut self, value: u128) -> Result<usize, TryWriteError>
fn try_write_u128_ne(&mut self, value: u128) -> Result<usize, TryWriteError>
u128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_le(&mut self, value: i16) -> usize
fn write_i16_le(&mut self, value: i16) -> usize
i16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_le_checked(&mut self, value: i16) -> Option<usize>
fn write_i16_le_checked(&mut self, value: i16) -> Option<usize>
i16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i16_le(&mut self, value: i16) -> Result<usize, TryWriteError>
fn try_write_i16_le(&mut self, value: i16) -> Result<usize, TryWriteError>
i16 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_be(&mut self, value: i16) -> usize
fn write_i16_be(&mut self, value: i16) -> usize
i16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_be_checked(&mut self, value: i16) -> Option<usize>
fn write_i16_be_checked(&mut self, value: i16) -> Option<usize>
i16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i16_be(&mut self, value: i16) -> Result<usize, TryWriteError>
fn try_write_i16_be(&mut self, value: i16) -> Result<usize, TryWriteError>
i16 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_ne(&mut self, value: i16) -> usize
fn write_i16_ne(&mut self, value: i16) -> usize
i16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i16_ne_checked(&mut self, value: i16) -> Option<usize>
fn write_i16_ne_checked(&mut self, value: i16) -> Option<usize>
i16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i16_ne(&mut self, value: i16) -> Result<usize, TryWriteError>
fn try_write_i16_ne(&mut self, value: i16) -> Result<usize, TryWriteError>
i16 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_le(&mut self, value: i32) -> usize
fn write_i32_le(&mut self, value: i32) -> usize
i32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_le_checked(&mut self, value: i32) -> Option<usize>
fn write_i32_le_checked(&mut self, value: i32) -> Option<usize>
i32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i32_le(&mut self, value: i32) -> Result<usize, TryWriteError>
fn try_write_i32_le(&mut self, value: i32) -> Result<usize, TryWriteError>
i32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_be(&mut self, value: i32) -> usize
fn write_i32_be(&mut self, value: i32) -> usize
i32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_be_checked(&mut self, value: i32) -> Option<usize>
fn write_i32_be_checked(&mut self, value: i32) -> Option<usize>
i32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i32_be(&mut self, value: i32) -> Result<usize, TryWriteError>
fn try_write_i32_be(&mut self, value: i32) -> Result<usize, TryWriteError>
i32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_ne(&mut self, value: i32) -> usize
fn write_i32_ne(&mut self, value: i32) -> usize
i32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i32_ne_checked(&mut self, value: i32) -> Option<usize>
fn write_i32_ne_checked(&mut self, value: i32) -> Option<usize>
i32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i32_ne(&mut self, value: i32) -> Result<usize, TryWriteError>
fn try_write_i32_ne(&mut self, value: i32) -> Result<usize, TryWriteError>
i32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_le(&mut self, value: i64) -> usize
fn write_i64_le(&mut self, value: i64) -> usize
i64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_le_checked(&mut self, value: i64) -> Option<usize>
fn write_i64_le_checked(&mut self, value: i64) -> Option<usize>
i64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i64_le(&mut self, value: i64) -> Result<usize, TryWriteError>
fn try_write_i64_le(&mut self, value: i64) -> Result<usize, TryWriteError>
i64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_be(&mut self, value: i64) -> usize
fn write_i64_be(&mut self, value: i64) -> usize
i64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_be_checked(&mut self, value: i64) -> Option<usize>
fn write_i64_be_checked(&mut self, value: i64) -> Option<usize>
i64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i64_be(&mut self, value: i64) -> Result<usize, TryWriteError>
fn try_write_i64_be(&mut self, value: i64) -> Result<usize, TryWriteError>
i64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_ne(&mut self, value: i64) -> usize
fn write_i64_ne(&mut self, value: i64) -> usize
i64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i64_ne_checked(&mut self, value: i64) -> Option<usize>
fn write_i64_ne_checked(&mut self, value: i64) -> Option<usize>
i64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i64_ne(&mut self, value: i64) -> Result<usize, TryWriteError>
fn try_write_i64_ne(&mut self, value: i64) -> Result<usize, TryWriteError>
i64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_le(&mut self, value: i128) -> usize
fn write_i128_le(&mut self, value: i128) -> usize
i128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_le_checked(&mut self, value: i128) -> Option<usize>
fn write_i128_le_checked(&mut self, value: i128) -> Option<usize>
i128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i128_le(&mut self, value: i128) -> Result<usize, TryWriteError>
fn try_write_i128_le(&mut self, value: i128) -> Result<usize, TryWriteError>
i128 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_be(&mut self, value: i128) -> usize
fn write_i128_be(&mut self, value: i128) -> usize
i128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_be_checked(&mut self, value: i128) -> Option<usize>
fn write_i128_be_checked(&mut self, value: i128) -> Option<usize>
i128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i128_be(&mut self, value: i128) -> Result<usize, TryWriteError>
fn try_write_i128_be(&mut self, value: i128) -> Result<usize, TryWriteError>
i128 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_ne(&mut self, value: i128) -> usize
fn write_i128_ne(&mut self, value: i128) -> usize
i128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_i128_ne_checked(&mut self, value: i128) -> Option<usize>
fn write_i128_ne_checked(&mut self, value: i128) -> Option<usize>
i128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_i128_ne(&mut self, value: i128) -> Result<usize, TryWriteError>
fn try_write_i128_ne(&mut self, value: i128) -> Result<usize, TryWriteError>
i128 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_le(&mut self, value: f32) -> usize
fn write_f32_le(&mut self, value: f32) -> usize
f32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_le_checked(&mut self, value: f32) -> Option<usize>
fn write_f32_le_checked(&mut self, value: f32) -> Option<usize>
f32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f32_le(&mut self, value: f32) -> Result<usize, TryWriteError>
fn try_write_f32_le(&mut self, value: f32) -> Result<usize, TryWriteError>
f32 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_be(&mut self, value: f32) -> usize
fn write_f32_be(&mut self, value: f32) -> usize
f32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_be_checked(&mut self, value: f32) -> Option<usize>
fn write_f32_be_checked(&mut self, value: f32) -> Option<usize>
f32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f32_be(&mut self, value: f32) -> Result<usize, TryWriteError>
fn try_write_f32_be(&mut self, value: f32) -> Result<usize, TryWriteError>
f32 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_ne(&mut self, value: f32) -> usize
fn write_f32_ne(&mut self, value: f32) -> usize
f32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f32_ne_checked(&mut self, value: f32) -> Option<usize>
fn write_f32_ne_checked(&mut self, value: f32) -> Option<usize>
f32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f32_ne(&mut self, value: f32) -> Result<usize, TryWriteError>
fn try_write_f32_ne(&mut self, value: f32) -> Result<usize, TryWriteError>
f32 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_le(&mut self, value: f64) -> usize
fn write_f64_le(&mut self, value: f64) -> usize
f64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_le_checked(&mut self, value: f64) -> Option<usize>
fn write_f64_le_checked(&mut self, value: f64) -> Option<usize>
f64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f64_le(&mut self, value: f64) -> Result<usize, TryWriteError>
fn try_write_f64_le(&mut self, value: f64) -> Result<usize, TryWriteError>
f64 value in little-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_be(&mut self, value: f64) -> usize
fn write_f64_be(&mut self, value: f64) -> usize
f64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_be_checked(&mut self, value: f64) -> Option<usize>
fn write_f64_be_checked(&mut self, value: f64) -> Option<usize>
f64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f64_be(&mut self, value: f64) -> Result<usize, TryWriteError>
fn try_write_f64_be(&mut self, value: f64) -> Result<usize, TryWriteError>
f64 value in big-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_ne(&mut self, value: f64) -> usize
fn write_f64_ne(&mut self, value: f64) -> usize
f64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn write_f64_ne_checked(&mut self, value: f64) -> Option<usize>
fn write_f64_ne_checked(&mut self, value: f64) -> Option<usize>
f64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§fn try_write_f64_ne(&mut self, value: f64) -> Result<usize, TryWriteError>
fn try_write_f64_ne(&mut self, value: f64) -> Result<usize, TryWriteError>
f64 value in native-endian byte order to the beginning of the buffer, advancing the internal cursor. Read moreSource§impl<B: Clone + ?Sized> Clone for ChunkWriter<B>
impl<B: Clone + ?Sized> Clone for ChunkWriter<B>
Source§fn clone(&self) -> ChunkWriter<B>
fn clone(&self) -> ChunkWriter<B>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<B: ?Sized> Deref for ChunkWriter<B>
impl<B: ?Sized> Deref for ChunkWriter<B>
Source§impl<B: ?Sized> DerefMut for ChunkWriter<B>
impl<B: ?Sized> DerefMut for ChunkWriter<B>
Source§impl<B> From<B> for ChunkWriter<B>
impl<B> From<B> for ChunkWriter<B>
impl<B: Copy + ?Sized> Copy for ChunkWriter<B>
impl<B: Eq + ?Sized> Eq for ChunkWriter<B>
impl<B: ?Sized> StructuralPartialEq for ChunkWriter<B>
Auto Trait Implementations§
impl<B> Freeze for ChunkWriter<B>
impl<B> RefUnwindSafe for ChunkWriter<B>where
B: RefUnwindSafe + ?Sized,
impl<B> Send for ChunkWriter<B>
impl<B> Sync for ChunkWriter<B>
impl<B> Unpin for ChunkWriter<B>
impl<B> UnwindSafe for ChunkWriter<B>where
B: 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
Source§impl<T> ChunkMutExt for Twhere
T: ChunkMut,
impl<T> ChunkMutExt for Twhere
T: ChunkMut,
Source§fn put_varint<V>(
&mut self,
value: &V,
) -> Result<NonZeroUsize, EncodeVarintError>where
V: Varint,
fn put_varint<V>(
&mut self,
value: &V,
) -> Result<NonZeroUsize, EncodeVarintError>where
V: Varint,
varint only.Source§fn put_varint_at<V>(
&mut self,
value: &V,
offset: usize,
) -> Result<NonZeroUsize, EncodeVarintAtError>where
V: Varint,
fn put_varint_at<V>(
&mut self,
value: &V,
offset: usize,
) -> Result<NonZeroUsize, EncodeVarintAtError>where
V: Varint,
varint only.Source§fn write_varint<V>(
&mut self,
value: &V,
) -> Result<NonZeroUsize, EncodeVarintError>where
V: Varint,
fn write_varint<V>(
&mut self,
value: &V,
) -> Result<NonZeroUsize, EncodeVarintError>where
V: Varint,
varint only.