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