pub enum JElementType {
Root,
CompilationUnit,
Sentence,
Assignment,
Expression,
Verb,
Noun,
Adverb,
Conjunction,
Group,
}Expand description
All possible element types in the J syntax tree.
Variants§
Root
Root node
CompilationUnit
Compilation unit
Sentence
Sentence
Assignment
Assignment
Expression
Expression
Verb
Verb
Noun
Noun
Adverb
Adverb
Conjunction
Conjunction
Group
Parenthesized expression
Trait Implementations§
Source§impl Clone for JElementType
impl Clone for JElementType
Source§fn clone(&self) -> JElementType
fn clone(&self) -> JElementType
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 JElementType
impl Debug for JElementType
Source§impl<'de> Deserialize<'de> for JElementType
impl<'de> Deserialize<'de> for JElementType
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 JElementType
impl ElementType for JElementType
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<JTokenType> for JElementType
impl From<JTokenType> for JElementType
Source§fn from(token: JTokenType) -> Self
fn from(token: JTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for JElementType
impl Hash for JElementType
Source§impl PartialEq for JElementType
impl PartialEq for JElementType
Source§impl Serialize for JElementType
impl Serialize for JElementType
impl Copy for JElementType
impl Eq for JElementType
impl StructuralPartialEq for JElementType
Auto Trait Implementations§
impl Freeze for JElementType
impl RefUnwindSafe for JElementType
impl Send for JElementType
impl Sync for JElementType
impl Unpin for JElementType
impl UnsafeUnpin for JElementType
impl UnwindSafe for JElementType
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