pub struct Putter<B: ?Sized> { /* private fields */ }Expand description
A putter for writing to a buffer without modifying the original buffer’s cursor.
Putter provides a non-destructive way to write buffer contents by maintaining
its own independent cursor position. This is particularly useful when you need to:
- Preview write operations before committing them
- Write data that might need to be rolled back
- Implement transactional write operations
- Share write access to the same buffer data from different positions
- Test serialization without modifying the original buffer
The putter can be constrained to a specific range within the buffer, making it safe for write operations that should not exceed certain boundaries.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut putter = Putter::new(&mut data[..]); // No need for &mut &mut
// Write without affecting the original buffer's cursor
putter.put_u8(0x42);
putter.put_u16_le(0x1234);
// Original buffer's state is unchanged until we access it
// The writes are staged in the putter's viewImplementations§
Source§impl<B> Putter<B>
impl<B> Putter<B>
Sourcepub fn new(buf: impl Into<ChunkWriter<B>>) -> Selfwhere
B: ChunkMut,
pub fn new(buf: impl Into<ChunkWriter<B>>) -> Selfwhere
B: ChunkMut,
Creates a new Putter instance with the given buffer.
The putter starts at the beginning of the buffer’s current position and can write to all remaining space in the buffer.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let putter = Putter::new(&mut data[..]);
assert_eq!(putter.remaining_mut(), 10);Sourcepub const fn const_new(buf: B) -> Self
pub const fn const_new(buf: B) -> Self
Creates a new Putter instance with the given buffer.
The putter starts at the beginning of the buffer’s current position and can write to all remaining space in the buffer.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut slice: &mut [u8] = &mut data[..];
let putter = Putter::const_new(&mut slice);
assert_eq!(putter.remaining_mut(), 10);Sourcepub fn with_limit(buf: impl Into<ChunkWriter<B>>, limit: usize) -> Self
pub fn with_limit(buf: impl Into<ChunkWriter<B>>, limit: usize) -> Self
Creates a new Putter constrained to a specific length.
This is useful when you want to ensure the putter cannot write beyond a certain number of bytes, providing additional safety for serialization operations.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let putter = Putter::with_limit(&mut data[..], 5); // Only write first 5 bytes
assert_eq!(putter.remaining_mut(), 5);Sourcepub const fn const_with_limit(buf: ChunkWriter<B>, limit: usize) -> Self
pub const fn const_with_limit(buf: ChunkWriter<B>, limit: usize) -> Self
Creates a new Putter constrained to a specific length.
This is useful when you want to ensure the putter cannot write beyond a certain number of bytes, providing additional safety for serialization operations.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let putter = Putter::const_with_limit((&mut data[..]).into(), 5); // Only write first 5 bytes
assert_eq!(putter.remaining_mut(), 5);Sourcepub fn with_range(
buf: impl Into<ChunkWriter<B>>,
range: impl RangeBounds<usize>,
) -> Selfwhere
B: ChunkMut,
pub fn with_range(
buf: impl Into<ChunkWriter<B>>,
range: impl RangeBounds<usize>,
) -> Selfwhere
B: ChunkMut,
Creates a new Putter with specific start and end bounds.
This provides maximum flexibility in defining the putter’s range, allowing for more complex write scenarios.
§Examples
use core::ops::Bound;
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
// Write from index 2 to 7 (exclusive)
let putter = Putter::with_range(&mut data[..], 2..7);
assert_eq!(putter.remaining_mut(), 5);Sourcepub const fn position(&self) -> usize
pub const fn position(&self) -> usize
Returns the current position of the internal cursor relative to the start of the buffer.
This represents how far the putter’s cursor has advanced from its starting position.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut putter = Putter::new(&mut data[..]);
assert_eq!(putter.position(), 0);
putter.write_u8(0x42);
assert_eq!(putter.position(), 1);
putter.advance_mut(2);
assert_eq!(putter.position(), 3);Sourcepub const fn absolute_position(&self) -> usize
pub const fn absolute_position(&self) -> usize
Returns the absolute position of the putter’s cursor in the underlying buffer.
This is the position relative to the start of the buffer, not just the putter’s starting point. This is useful for understanding where the putter is writing in the context of the entire buffer.
§Examples
use bufkit::{ChunkMut, Putter};
use core::ops::Bound;
let mut data = [0u8; 10];
let mut putter = Putter::with_range(&mut data[..], 3..7);
putter.write_u8(0x42);
assert_eq!(putter.absolute_position(), 4); // 3 (offset) + 1 (written)Sourcepub const fn reset_position(&mut self)
pub const fn reset_position(&mut self)
Resets the putter’s to the initial state.
After calling this method, the putter will start writing from the same position and the same limit where it was initially created.
This method will not clean the dirty state of the putter, which means
any previously written data will still be present in the buffer. See also reset.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut putter = Putter::new(&mut data[..]);
putter.advance_mut(3);
assert_eq!(putter.position(), 3);
putter.reset_position();
assert_eq!(putter.position(), 0);
assert_eq!(putter.remaining_mut(), 10);Sourcepub fn reset(&mut self)where
B: ChunkMut,
pub fn reset(&mut self)where
B: ChunkMut,
Resets the putter’s buffer to its initial state, filling the written area with zeros.
This method clears the buffer’s contents from the start position to the limit position, effectively resetting the buffer to a clean state.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut putter = Putter::new(&mut data[..]);
putter.put_u8(0x42);
assert_eq!(putter.buffer_mut()[0], 0x42);
putter.reset();
assert_eq!(putter.buffer_mut()[0], 0x00); // The first byte is reset to zeroSourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Consumes the putter and returns the underlying buffer.
Any writes made through the putter will be reflected in the returned buffer. This is useful when you want to finalize the writes and retrieve the modified buffer.
§Examples
use bufkit::{ChunkMut, Putter};
let mut data = [0u8; 10];
let mut putter = Putter::new(&mut data[..]);
putter.put_u8(0x42);
let buf = putter.into_inner();
assert_eq!(buf[0], 0x42);Trait Implementations§
Source§impl<B: ChunkMut + ?Sized> ChunkMut for Putter<B>
impl<B: ChunkMut + ?Sized> ChunkMut for Putter<B>
Source§fn remaining_mut(&self) -> usize
fn remaining_mut(&self) -> usize
Source§fn buffer_mut(&mut self) -> &mut [u8] ⓘ
fn buffer_mut(&mut self) -> &mut [u8] ⓘ
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 has_remaining_mut(&self) -> bool
fn has_remaining_mut(&self) -> bool
true if the buffer has available space for writing. Read moreSource§fn buffer_mut_from(&mut self, offset: usize) -> &mut [u8] ⓘ
fn buffer_mut_from(&mut self, offset: usize) -> &mut [u8] ⓘ
Source§fn buffer_mut_from_checked(&mut self, offset: usize) -> Option<&mut [u8]>
fn buffer_mut_from_checked(&mut self, offset: usize) -> Option<&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 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_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§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 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_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 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 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_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 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 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 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 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_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 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 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 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 moreAuto Trait Implementations§
impl<B> Freeze for Putter<B>
impl<B> RefUnwindSafe for Putter<B>where
B: RefUnwindSafe + ?Sized,
impl<B> Send for Putter<B>
impl<B> Sync for Putter<B>
impl<B> Unpin for Putter<B>
impl<B> UnwindSafe for Putter<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.