pub enum CobolElementType {
Eof,
Whitespace,
Comment,
Identifier,
String,
Number,
Identification,
Division,
Root,
DivisionElement,
Paragraph,
}Expand description
COBOL element types.
Variants§
Eof
End of file.
Whitespace
Whitespace.
Comment
Comment.
Identifier
Identifier.
String
String literal.
Number
Number literal.
Identification
“IDENTIFICATION” keyword.
Division
“DIVISION” keyword.
Root
Root element.
DivisionElement
Division element.
Paragraph
Paragraph element.
Trait Implementations§
Source§impl Clone for CobolElementType
impl Clone for CobolElementType
Source§fn clone(&self) -> CobolElementType
fn clone(&self) -> CobolElementType
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 CobolElementType
impl Debug for CobolElementType
Source§impl<'de> Deserialize<'de> for CobolElementType
impl<'de> Deserialize<'de> for CobolElementType
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 CobolElementType
impl ElementType for CobolElementType
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<CobolTokenType> for CobolElementType
impl From<CobolTokenType> for CobolElementType
Source§fn from(token: CobolTokenType) -> Self
fn from(token: CobolTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for CobolElementType
impl Hash for CobolElementType
Source§impl PartialEq for CobolElementType
impl PartialEq for CobolElementType
Source§impl Serialize for CobolElementType
impl Serialize for CobolElementType
impl Copy for CobolElementType
impl Eq for CobolElementType
impl StructuralPartialEq for CobolElementType
Auto Trait Implementations§
impl Freeze for CobolElementType
impl RefUnwindSafe for CobolElementType
impl Send for CobolElementType
impl Sync for CobolElementType
impl Unpin for CobolElementType
impl UnsafeUnpin for CobolElementType
impl UnwindSafe for CobolElementType
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