pub enum MsilElementType {
Show 43 variants
Root,
Assembly,
AssemblyExtern,
Module,
Class,
Method,
Instruction,
Label,
Directive,
Type,
Identifier,
Number,
String,
Comment,
ErrorNode,
AssemblyKeyword,
ExternKeyword,
ModuleKeyword,
ClassKeyword,
MethodKeyword,
PublicKeyword,
PrivateKeyword,
StaticKeyword,
Keyword,
LeftBrace,
RightBrace,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
Dot,
Colon,
Semicolon,
Comma,
Equal,
Slash,
IdentifierToken,
NumberToken,
StringToken,
Whitespace,
CommentToken,
Eof,
Error,
}Expand description
Element types for the MSIL (CIL) language.
Variants§
Root
The root node of the AST.
Assembly
An assembly directive.
AssemblyExtern
An external assembly directive.
Module
A module directive.
Class
A class definition.
Method
A method definition.
Instruction
An instruction.
Label
A label.
Directive
A generic directive.
Type
A type reference or definition.
Identifier
An identifier.
Number
A number literal.
String
A string literal.
Comment
A comment.
ErrorNode
An error node in the AST.
AssemblyKeyword
.assembly keyword.
ExternKeyword
extern keyword.
ModuleKeyword
.module keyword.
ClassKeyword
.class keyword.
MethodKeyword
.method keyword.
PublicKeyword
public keyword.
PrivateKeyword
private keyword.
StaticKeyword
static keyword.
Keyword
Other keyword.
LeftBrace
{.
RightBrace
}.
LeftParen
(.
RightParen
).
LeftBracket
[.
RightBracket
].
Dot
..
Colon
:.
Semicolon
;.
Comma
,.
Equal
=.
Slash
/.
IdentifierToken
Identifier token.
NumberToken
Number token.
StringToken
String token.
Whitespace
Whitespace.
CommentToken
Comment token.
Eof
End of stream.
Error
Error token.
Trait Implementations§
Source§impl Clone for MsilElementType
impl Clone for MsilElementType
Source§fn clone(&self) -> MsilElementType
fn clone(&self) -> MsilElementType
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 MsilElementType
impl Debug for MsilElementType
Source§impl<'de> Deserialize<'de> for MsilElementType
impl<'de> Deserialize<'de> for MsilElementType
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 MsilElementType
impl ElementType for MsilElementType
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<MsilTokenType> for MsilElementType
impl From<MsilTokenType> for MsilElementType
Source§fn from(token: MsilTokenType) -> Self
fn from(token: MsilTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for MsilElementType
impl Hash for MsilElementType
Source§impl PartialEq for MsilElementType
impl PartialEq for MsilElementType
Source§impl Serialize for MsilElementType
impl Serialize for MsilElementType
impl Copy for MsilElementType
impl Eq for MsilElementType
impl StructuralPartialEq for MsilElementType
Auto Trait Implementations§
impl Freeze for MsilElementType
impl RefUnwindSafe for MsilElementType
impl Send for MsilElementType
impl Sync for MsilElementType
impl Unpin for MsilElementType
impl UnsafeUnpin for MsilElementType
impl UnwindSafe for MsilElementType
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