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