pub enum VonElementType {
Show 25 variants
Whitespace,
Newline,
Comment,
Eof,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Colon,
Eq,
StringLiteral,
NumberLiteral,
BoolLiteral,
NullLiteral,
Identifier,
Value,
Object,
Array,
ObjectEntry,
Enum,
ErrorNode,
Error,
Root,
ArrayElement,
}Expand description
Element types for the VON (Value-Oriented Notation) parser.
Variants§
Whitespace
Whitespace characters.
Newline
Line breaks.
Comment
Comments.
Eof
End of file.
LeftBrace
An opening brace ({).
RightBrace
A closing brace (}).
LeftBracket
An opening bracket ([).
RightBracket
A closing bracket (]).
Comma
A comma (,).
Colon
A colon (:).
Eq
An equal sign (=).
StringLiteral
A string literal.
NumberLiteral
A numeric literal.
BoolLiteral
A boolean literal.
NullLiteral
A null literal.
Identifier
An identifier.
Value
A value element.
Object
An object element.
Array
An array element.
ObjectEntry
An entry in an object.
Enum
An enum element.
ErrorNode
An error node in the parse tree.
Error
An error element.
Root
The root of the parse tree.
ArrayElement
An element in an array.
Trait Implementations§
Source§impl Clone for VonElementType
impl Clone for VonElementType
Source§fn clone(&self) -> VonElementType
fn clone(&self) -> VonElementType
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 VonElementType
impl Debug for VonElementType
Source§impl<'de> Deserialize<'de> for VonElementType
impl<'de> Deserialize<'de> for VonElementType
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 VonElementType
impl ElementType for VonElementType
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<VonTokenType> for VonElementType
impl From<VonTokenType> for VonElementType
Source§fn from(token: VonTokenType) -> Self
fn from(token: VonTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for VonElementType
impl Hash for VonElementType
Source§impl PartialEq for VonElementType
impl PartialEq for VonElementType
Source§impl Serialize for VonElementType
impl Serialize for VonElementType
impl Copy for VonElementType
impl Eq for VonElementType
impl StructuralPartialEq for VonElementType
Auto Trait Implementations§
impl Freeze for VonElementType
impl RefUnwindSafe for VonElementType
impl Send for VonElementType
impl Sync for VonElementType
impl Unpin for VonElementType
impl UnsafeUnpin for VonElementType
impl UnwindSafe for VonElementType
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