pub enum Rule {
Show 13 variants
EOI,
WHITESPACE,
NEWLINE,
TAB,
WHITESPACE_ALL,
document,
declaration,
elem,
start_tag,
end_tag,
self_closed_tag,
tag_name,
text,
}Variants§
EOI
End-of-input
WHITESPACE
NEWLINE
TAB
WHITESPACE_ALL
document
This rule is used to parse all input text.
#Examples
// <!DOCTYPE html><html><br/><html/>declaration
This rule is used to define the declaration at the start of the text.
#Examples
// <!DOCTYPE html>elem
This rule is used to identify the structure of a complex tag, which necessarily includes an opening and closing tag. And may contain nested elements. #Examples
// <html> </html>
// <html> <br/> <p>Text</p> </html>start_tag
This rule is used to identify the opening tag. #Examples
// <html>
// <p>end_tag
This rule is used to identify the ending tag. #Examples
// </html>
// </p>self_closed_tag
This rule is used to identify the self-closing tag. #Examples
// <br/>
// <img/>tag_name
This rule is used to identify the tag name. #Examples
// html
// div
// brtext
This rule is used to identify the text component. #Examples
// 'Just some text between the two components or tags.'Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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