pub struct WriteBuf<B: ?Sized>(/* private fields */);Expand description
A wrapper around any type that implements BufMut for improved ergonomics in generic code.
WriteBuf 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 BufMut 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<WriteBuf<B>> in your function signatures, callers can pass buffer types
naturally without extra reference wrapping:
use bufkit::{BufMut, WriteBuf};
// Instead of this awkward signature:
fn encode_bad<B: BufMut>(buf: &mut B) { /* ... */ }
// Use this ergonomic signature:
fn encode_good<B: BufMut>(buf: impl Into<WriteBuf<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::{BufMut, WriteBuf};
pub trait Encode {
fn encode<B: BufMut>(&self, buf: impl Into<WriteBuf<B>>) -> Result<usize, Error>;
}
impl Encode for MyStruct {
fn encode<B: BufMut>(&self, buf: impl Into<WriteBuf<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
WriteBuf can wrap any type that implements BufMut, including:
&mut [u8]- Fixed-size byte arrays- Custom buffer implementations
- Other
BufMutimplementors
Implementations§
Source§impl<B: ?Sized> WriteBuf<B>
impl<B: ?Sized> WriteBuf<B>
Trait Implementations§
Source§impl<B: ?Sized + BufMut> BufMut for WriteBuf<B>
impl<B: ?Sized + BufMut> BufMut for WriteBuf<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 moreimpl<B: Copy + ?Sized> Copy for WriteBuf<B>
impl<B: Eq + ?Sized> Eq for WriteBuf<B>
impl<B: ?Sized> StructuralPartialEq for WriteBuf<B>
Auto Trait Implementations§
impl<B> Freeze for WriteBuf<B>
impl<B> RefUnwindSafe for WriteBuf<B>where
B: RefUnwindSafe + ?Sized,
impl<B> Send for WriteBuf<B>
impl<B> Sync for WriteBuf<B>
impl<B> Unpin for WriteBuf<B>
impl<B> UnwindSafe for WriteBuf<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> BufMutExt for Twhere
T: BufMut,
impl<T> BufMutExt for Twhere
T: BufMut,
Source§fn put_varint<V>(&mut self, value: &V) -> Result<usize, PutVarintError>where
V: Varint,
fn put_varint<V>(&mut self, value: &V) -> Result<usize, PutVarintError>where
V: Varint,
varing only.Source§fn put_varint_at<V>(
&mut self,
value: &V,
offset: usize,
) -> Result<usize, PutVarintAtError>where
V: Varint,
fn put_varint_at<V>(
&mut self,
value: &V,
offset: usize,
) -> Result<usize, PutVarintAtError>where
V: Varint,
varing only.Source§fn write_varint<V>(&mut self, value: &V) -> Result<usize, WriteVarintError>where
V: Varint,
fn write_varint<V>(&mut self, value: &V) -> Result<usize, WriteVarintError>where
V: Varint,
varing only.