pub struct HexStringLexer<'a> { /* private fields */ }Implementations§
Source§impl<'a> HexStringLexer<'a>
impl<'a> HexStringLexer<'a>
Sourcepub fn new(buf: &'a [u8]) -> HexStringLexer<'a>
pub fn new(buf: &'a [u8]) -> HexStringLexer<'a>
buf should start right after the < delimiter, and may span all the way to EOF.
HexStringLexer will determine the end of the string.
pub fn iter<'b>(&'b mut self) -> HexStringLexerIter<'a, 'b>
Sourcepub fn get_offset(&self) -> usize
pub fn get_offset(&self) -> usize
Get offset/position from start of string
pub fn next_hex_byte(&mut self) -> Result<Option<u8>>
Auto Trait Implementations§
impl<'a> Freeze for HexStringLexer<'a>
impl<'a> RefUnwindSafe for HexStringLexer<'a>
impl<'a> Send for HexStringLexer<'a>
impl<'a> Sync for HexStringLexer<'a>
impl<'a> Unpin for HexStringLexer<'a>
impl<'a> UnwindSafe for HexStringLexer<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more