Struct encoding_rs::handles::ByteDestination
source · pub struct ByteDestination<'a> {
slice: &'a mut [u8],
pos: usize,
}
Fields§
§slice: &'a mut [u8]
§pos: usize
Implementations§
source§impl<'a> ByteDestination<'a>
impl<'a> ByteDestination<'a>
pub fn new(dst: &mut [u8]) -> ByteDestination<'_>
pub fn check_space_one<'b>(&'b mut self) -> Space<ByteOneHandle<'b, 'a>>
pub fn check_space_two<'b>(&'b mut self) -> Space<ByteTwoHandle<'b, 'a>>
pub fn check_space_three<'b>(&'b mut self) -> Space<ByteThreeHandle<'b, 'a>>
pub fn check_space_four<'b>(&'b mut self) -> Space<ByteFourHandle<'b, 'a>>
pub fn written(&self) -> usize
fn write_one(&mut self, first: u8)
fn write_two(&mut self, first: u8, second: u8)
fn write_three(&mut self, first: u8, second: u8, third: u8)
fn write_four(&mut self, first: u8, second: u8, third: u8, fourth: u8)
Auto Trait Implementations§
impl<'a> Freeze for ByteDestination<'a>
impl<'a> RefUnwindSafe for ByteDestination<'a>
impl<'a> Send for ByteDestination<'a>
impl<'a> Sync for ByteDestination<'a>
impl<'a> Unpin for ByteDestination<'a>
impl<'a> !UnwindSafe for ByteDestination<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more