Struct encoding_rs::handles::Utf8Source
source · pub struct Utf8Source<'a> {
slice: &'a [u8],
pos: usize,
old_pos: usize,
}
Fields§
§slice: &'a [u8]
§pos: usize
§old_pos: usize
Implementations§
source§impl<'a> Utf8Source<'a>
impl<'a> Utf8Source<'a>
pub fn new(src: &str) -> Utf8Source<'_>
pub fn check_available<'b>(&'b mut self) -> Space<Utf8ReadHandle<'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_one<'b>( &mut self, dest: &'b mut ByteDestination<'a>, ) -> CopyAsciiResult<(EncoderResult, usize, usize), (NonAscii, ByteOneHandle<'b, 'a>)>
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 Utf8Source<'a>
impl<'a> RefUnwindSafe for Utf8Source<'a>
impl<'a> Send for Utf8Source<'a>
impl<'a> Sync for Utf8Source<'a>
impl<'a> Unpin for Utf8Source<'a>
impl<'a> UnwindSafe for Utf8Source<'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