Struct encoding_rs::handles::Utf16Source
source · pub struct Utf16Source<'a> {
slice: &'a [u16],
pos: usize,
old_pos: usize,
}
Fields§
§slice: &'a [u16]
§pos: usize
§old_pos: usize
Implementations§
source§impl<'a> Utf16Source<'a>
impl<'a> Utf16Source<'a>
pub fn new(src: &[u16]) -> Utf16Source<'_>
pub fn check_available<'b>(&'b mut self) -> Space<Utf16ReadHandle<'b, 'a>>
fn read(&mut self) -> char
fn read_enum(&mut self) -> Unicode
fn unread(&mut self) -> usize
pub fn consumed(&self) -> usize
pub fn copy_ascii_to_check_space_two<'b>( &mut self, dest: &'b mut ByteDestination<'a>, ) -> CopyAsciiResult<(EncoderResult, usize, usize), (NonAscii, ByteTwoHandle<'b, 'a>)>
pub fn copy_ascii_to_check_space_four<'b>( &mut self, dest: &'b mut ByteDestination<'a>, ) -> CopyAsciiResult<(EncoderResult, usize, usize), (NonAscii, ByteFourHandle<'b, 'a>)>
Auto Trait Implementations§
impl<'a> Freeze for Utf16Source<'a>
impl<'a> RefUnwindSafe for Utf16Source<'a>
impl<'a> Send for Utf16Source<'a>
impl<'a> Sync for Utf16Source<'a>
impl<'a> Unpin for Utf16Source<'a>
impl<'a> UnwindSafe for Utf16Source<'a>
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