pub enum IniElementType {
Show 30 variants
Whitespace,
Newline,
Comment,
Error,
Eof,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
DoubleLeftBracket,
DoubleRightBracket,
Comma,
Dot,
Equal,
Identifier,
String,
Integer,
Float,
Boolean,
DateTime,
Root,
Document,
Section,
Table,
ArrayOfTables,
KeyValue,
Key,
Value,
Array,
InlineTable,
}Expand description
INI element types used in the syntax tree.
Variants§
Whitespace
Whitespace characters.
Newline
Newline character.
Comment
Comment.
Error
Error element.
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.
Root
Root of the INI document.
Document
The entire INI document.
Section
A section in the INI file.
Table
A table definition.
ArrayOfTables
An array of tables definition.
KeyValue
A key-value pair.
Key
The key part of a key-value pair.
Value
The value part of a key-value pair.
Array
An array value.
InlineTable
An inline table value.
Trait Implementations§
Source§impl Clone for IniElementType
impl Clone for IniElementType
Source§fn clone(&self) -> IniElementType
fn clone(&self) -> IniElementType
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 IniElementType
impl Debug for IniElementType
Source§impl<'de> Deserialize<'de> for IniElementType
impl<'de> Deserialize<'de> for IniElementType
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 IniElementType
impl ElementType for IniElementType
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<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 IniElementType
impl Hash for IniElementType
Source§impl PartialEq for IniElementType
impl PartialEq for IniElementType
Source§impl Serialize for IniElementType
impl Serialize for IniElementType
impl Copy for IniElementType
impl Eq for IniElementType
impl StructuralPartialEq for IniElementType
Auto Trait Implementations§
impl Freeze for IniElementType
impl RefUnwindSafe for IniElementType
impl Send for IniElementType
impl Sync for IniElementType
impl Unpin for IniElementType
impl UnsafeUnpin for IniElementType
impl UnwindSafe for IniElementType
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