Struct encoding_rs::handles::ByteTwoHandle
source · pub struct ByteTwoHandle<'a, 'b>where
'b: 'a,{
dest: &'a mut ByteDestination<'b>,
}
Fields§
§dest: &'a mut ByteDestination<'b>
Implementations§
source§impl<'a, 'b> ByteTwoHandle<'a, 'b>where
'b: 'a,
impl<'a, 'b> ByteTwoHandle<'a, 'b>where
'b: 'a,
fn new(dst: &'a mut ByteDestination<'b>) -> ByteTwoHandle<'a, 'b>
pub fn written(&self) -> usize
pub fn write_one(self, first: u8) -> &'a mut ByteDestination<'b>
pub fn write_two(self, first: u8, second: u8) -> &'a mut ByteDestination<'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for ByteTwoHandle<'a, 'b>
impl<'a, 'b> RefUnwindSafe for ByteTwoHandle<'a, 'b>
impl<'a, 'b> Send for ByteTwoHandle<'a, 'b>
impl<'a, 'b> Sync for ByteTwoHandle<'a, 'b>
impl<'a, 'b> Unpin for ByteTwoHandle<'a, 'b>
impl<'a, 'b> !UnwindSafe for ByteTwoHandle<'a, 'b>
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