pub enum IniTokenType {
Show 20 variants
Whitespace,
Newline,
Comment,
Error,
Eof,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
DoubleLeftBracket,
DoubleRightBracket,
Comma,
Dot,
Equal,
Identifier,
String,
Integer,
Float,
Boolean,
DateTime,
}Expand description
INI token types.
Variants§
Whitespace
Whitespace characters.
Newline
Newline character.
Comment
Comment.
Error
Error token.
Eof
End of file.
LeftBrace
{ symbol.
RightBrace
} symbol.
LeftBracket
[ symbol.
RightBracket
] symbol.
DoubleLeftBracket
[[ symbol.
DoubleRightBracket
]] symbol.
Comma
, symbol.
Dot
. symbol.
Equal
= operator.
Identifier
Identifier.
String
String literal.
Integer
Integer literal.
Float
Floating-point literal.
Boolean
Boolean literal.
DateTime
Date and time literal.
Trait Implementations§
Source§impl Clone for IniTokenType
impl Clone for IniTokenType
Source§fn clone(&self) -> IniTokenType
fn clone(&self) -> IniTokenType
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 IniTokenType
impl Debug for IniTokenType
Source§impl<'de> Deserialize<'de> for IniTokenType
impl<'de> Deserialize<'de> for IniTokenType
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 From<IniTokenType> for IniElementType
impl From<IniTokenType> for IniElementType
Source§fn from(token: IniTokenType) -> Self
fn from(token: IniTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for IniTokenType
impl Hash for IniTokenType
Source§impl PartialEq for IniTokenType
impl PartialEq for IniTokenType
Source§impl Serialize for IniTokenType
impl Serialize for IniTokenType
Source§impl TokenType for IniTokenType
impl TokenType for IniTokenType
Source§const END_OF_STREAM: Self = Self::Eof
const END_OF_STREAM: Self = Self::Eof
A constant representing the end of the input stream.
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.).
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment.
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace.
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream.
impl Copy for IniTokenType
impl Eq for IniTokenType
impl StructuralPartialEq for IniTokenType
Auto Trait Implementations§
impl Freeze for IniTokenType
impl RefUnwindSafe for IniTokenType
impl Send for IniTokenType
impl Sync for IniTokenType
impl Unpin for IniTokenType
impl UnsafeUnpin for IniTokenType
impl UnwindSafe for IniTokenType
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