pub enum Strategy {
Show 14 variants
None,
SingleTemplate,
SingleScript,
SingleStyle,
SingleComment,
TemplateScript,
TemplateStyle,
TemplateComment,
ScriptComment,
StyleComment,
TemplateScriptComment,
TemplateStyleComment,
All,
Error(String),
}Expand description
Parse Strategy Convert ParseTarget To AST
Variants§
None
an empty file
SingleTemplate
only has template tag
SingleScript
only has rust script
SingleStyle
only has style tag
SingleComment
no template, rust script, style only comment (should with signatures)
TemplateScript
template with rust script
TemplateStyle
template with style
TemplateComment
template with comment
ScriptComment
script with comment
StyleComment
style with comment
TemplateScriptComment
TemplateStyleComment
All
has all means: TemplateScriptStyle
Error(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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