struct SvgLexer<'a> {
data: &'a str,
ix: usize,
pub last_pt: Point,
}
Fields§
§data: &'a str
§ix: usize
§last_pt: Point
Implementations§
Source§impl SvgLexer<'_>
impl SvgLexer<'_>
fn new(data: &str) -> SvgLexer<'_>
fn skip_ws(&mut self)
fn get_cmd(&mut self, last_cmd: u8) -> Option<u8>
fn get_byte(&mut self) -> Option<u8>
fn unget(&mut self)
fn get_number(&mut self) -> Result<f64, SvgParseError>
fn get_flag(&mut self) -> Result<bool, SvgParseError>
fn get_number_pair(&mut self) -> Result<Point, SvgParseError>
fn get_maybe_relative(&mut self, cmd: u8) -> Result<Point, SvgParseError>
fn opt_comma(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for SvgLexer<'a>
impl<'a> RefUnwindSafe for SvgLexer<'a>
impl<'a> Send for SvgLexer<'a>
impl<'a> Sync for SvgLexer<'a>
impl<'a> Unpin for SvgLexer<'a>
impl<'a> UnwindSafe for SvgLexer<'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