Struct svgparser::transform::Tokenizer
[−]
[src]
pub struct Tokenizer<'a> { /* fields omitted */ }
Transform tokenizer.
Trait Implementations
impl<'a> Tokenize<'a> for Tokenizer<'a>
[src]
type Token = Token
Token type.
fn from_str(text: &'a str) -> Tokenizer<'a>
Constructs a new Tokenizer
from string.
fn from_frame(frame: TextFrame<'a>) -> Tokenizer<'a>
Constructs a new Tokenizer
from [TextFrame
]. [TextFrame
]: struct.TextFrame.html Read more
fn parse_next(&mut self) -> Result<Token, Error>
Extracts next transform from the stream.
Errors
- Most of the
Error
types can occur.
Notes
- There are no separate
rotate(<rotate-angle> <cx> <cy>)
type. It will be automatically split into threeTransform
tokens:translate(<cx> <cy>) rotate(<rotate-angle>) translate(-<cx> -<cy>)
. Just like the spec is stated.