Struct encoding_rs::handles::ByteUnreadHandle
source · pub struct ByteUnreadHandle<'a, 'b>where
'b: 'a,{
source: &'a mut ByteSource<'b>,
}
Fields§
§source: &'a mut ByteSource<'b>
Implementations§
source§impl<'a, 'b> ByteUnreadHandle<'a, 'b>where
'b: 'a,
impl<'a, 'b> ByteUnreadHandle<'a, 'b>where
'b: 'a,
fn new(src: &'a mut ByteSource<'b>) -> ByteUnreadHandle<'a, 'b>
pub fn unread(self) -> usize
pub fn consumed(&self) -> usize
pub fn commit(self) -> &'a mut ByteSource<'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for ByteUnreadHandle<'a, 'b>
impl<'a, 'b> RefUnwindSafe for ByteUnreadHandle<'a, 'b>
impl<'a, 'b> Send for ByteUnreadHandle<'a, 'b>
impl<'a, 'b> Sync for ByteUnreadHandle<'a, 'b>
impl<'a, 'b> Unpin for ByteUnreadHandle<'a, 'b>
impl<'a, 'b> !UnwindSafe for ByteUnreadHandle<'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