pub enum HandlebarsElementType {
Show 48 variants
Whitespace,
Newline,
Comment,
Open,
Close,
OpenUnescaped,
CloseUnescaped,
OpenRawBlock,
CloseRawBlock,
OpenEndRawBlock,
OpenBlock,
OpenInverseBlock,
CloseBlock,
OpenPartial,
OpenComment,
OpenCommentBlock,
CloseCommentBlock,
Else,
Identifier,
StringLiteral,
NumberLiteral,
BooleanLiteral,
Dot,
Slash,
Hash,
At,
Pipe,
Equal,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
Caret,
Content,
Root,
Mustache,
Block,
InverseBlock,
Partial,
CommentNode,
ContentNode,
Expression,
SubExpression,
Path,
Parameter,
ElseBlock,
Error,
Eof,
}Expand description
Handlebars element type definition.
Variants§
Whitespace
Whitespace.
Newline
Newline.
Comment
Comment.
Open
{{.
Close
}}.
OpenUnescaped
{{{.
CloseUnescaped
}}}.
OpenRawBlock
{{{{.
CloseRawBlock
}}}}.
OpenEndRawBlock
{{{{/.
OpenBlock
{{#.
OpenInverseBlock
{{^.
CloseBlock
{{/.
OpenPartial
{{>.
OpenComment
{{!.
OpenCommentBlock
{{!--.
CloseCommentBlock
--}}.
Else
else keyword.
Identifier
Identifier.
StringLiteral
String literal.
NumberLiteral
Number literal.
BooleanLiteral
Boolean literal.
Dot
. symbol.
Slash
/ symbol.
Hash
# symbol.
At
@ symbol.
Pipe
| symbol.
Equal
= symbol.
LeftParen
( symbol.
RightParen
) symbol.
LeftBracket
[ symbol.
RightBracket
] symbol.
Caret
^ symbol.
Content
HTML/text content.
Root
Root node.
Mustache
Mustache expression.
Block
Block expression.
InverseBlock
Inverse block expression.
Partial
Partial template reference.
CommentNode
Comment node.
ContentNode
Content node.
Expression
Expression node.
SubExpression
Sub-expression node.
Path
Path node.
Parameter
Parameter node.
ElseBlock
Else block.
Error
Error node.
Eof
End of stream.
Trait Implementations§
Source§impl Clone for HandlebarsElementType
impl Clone for HandlebarsElementType
Source§fn clone(&self) -> HandlebarsElementType
fn clone(&self) -> HandlebarsElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandlebarsElementType
impl Debug for HandlebarsElementType
Source§impl<'de> Deserialize<'de> for HandlebarsElementType
impl<'de> Deserialize<'de> for HandlebarsElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for HandlebarsElementType
impl ElementType for HandlebarsElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<HandlebarsTokenType> for HandlebarsElementType
impl From<HandlebarsTokenType> for HandlebarsElementType
Source§fn from(token: HandlebarsTokenType) -> Self
fn from(token: HandlebarsTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for HandlebarsElementType
impl Hash for HandlebarsElementType
Source§impl PartialEq for HandlebarsElementType
impl PartialEq for HandlebarsElementType
Source§impl Serialize for HandlebarsElementType
impl Serialize for HandlebarsElementType
impl Copy for HandlebarsElementType
impl Eq for HandlebarsElementType
impl StructuralPartialEq for HandlebarsElementType
Auto Trait Implementations§
impl Freeze for HandlebarsElementType
impl RefUnwindSafe for HandlebarsElementType
impl Send for HandlebarsElementType
impl Sync for HandlebarsElementType
impl Unpin for HandlebarsElementType
impl UnsafeUnpin for HandlebarsElementType
impl UnwindSafe for HandlebarsElementType
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