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