#[repr(u8)]pub enum DotElementType {
Show 26 variants
Identifier = 0,
String = 1,
Number = 2,
Whitespace = 3,
Newline = 4,
Graph = 5,
Digraph = 6,
Subgraph = 7,
Node = 8,
Edge = 9,
Strict = 10,
Arrow = 11,
Line = 12,
Equal = 13,
Semicolon = 14,
Comma = 15,
LeftBrace = 16,
RightBrace = 17,
LeftBracket = 18,
RightBracket = 19,
LeftParen = 20,
RightParen = 21,
Comment = 22,
Root = 23,
Error = 24,
Eof = 25,
}Expand description
Element types for the DOT language.
Variants§
Identifier = 0
An identifier.
String = 1
A string literal.
Number = 2
A number literal.
Whitespace = 3
Whitespace.
Newline = 4
A newline.
Graph = 5
The graph keyword.
Digraph = 6
The digraph keyword.
Subgraph = 7
The subgraph keyword.
Node = 8
The node keyword.
Edge = 9
The edge keyword.
Strict = 10
The strict keyword.
Arrow = 11
The -> arrow operator.
Line = 12
The -- line operator.
Equal = 13
The = equal operator.
Semicolon = 14
The ; semicolon.
Comma = 15
The , comma.
LeftBrace = 16
The { left brace.
RightBrace = 17
The } right brace.
LeftBracket = 18
The [ left bracket.
RightBracket = 19
The ] right bracket.
LeftParen = 20
The ( left paren.
RightParen = 21
The ) right paren.
Comment = 22
A comment.
Root = 23
The root element.
Error = 24
An error element.
Eof = 25
End of stream marker.
Trait Implementations§
Source§impl Clone for DotElementType
impl Clone for DotElementType
Source§fn clone(&self) -> DotElementType
fn clone(&self) -> DotElementType
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 DotElementType
impl Debug for DotElementType
Source§impl<'de> Deserialize<'de> for DotElementType
impl<'de> Deserialize<'de> for DotElementType
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 DotElementType
impl ElementType for DotElementType
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<DotTokenType> for DotElementType
impl From<DotTokenType> for DotElementType
Source§fn from(token: DotTokenType) -> Self
fn from(token: DotTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for DotElementType
impl Hash for DotElementType
Source§impl PartialEq for DotElementType
impl PartialEq for DotElementType
Source§impl Serialize for DotElementType
impl Serialize for DotElementType
impl Copy for DotElementType
impl Eq for DotElementType
impl StructuralPartialEq for DotElementType
Auto Trait Implementations§
impl Freeze for DotElementType
impl RefUnwindSafe for DotElementType
impl Send for DotElementType
impl Sync for DotElementType
impl Unpin for DotElementType
impl UnsafeUnpin for DotElementType
impl UnwindSafe for DotElementType
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