pub enum ClojureElementType {
Token(ClojureTokenType),
Root,
SourceFile,
List,
Vector,
Map,
Set,
AnonFn,
Error,
}Expand description
Represents all possible element kinds in the Clojure programming language.
Variants§
Token(ClojureTokenType)
A wrapper for tokens
Root
Root node
SourceFile
Root node of the source file
List
List node
Vector
Vector node
Map
Map node
Set
Set node
AnonFn
Anonymous function node
Error
Error node
Trait Implementations§
Source§impl Clone for ClojureElementType
impl Clone for ClojureElementType
Source§fn clone(&self) -> ClojureElementType
fn clone(&self) -> ClojureElementType
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 ClojureElementType
impl Debug for ClojureElementType
Source§impl<'de> Deserialize<'de> for ClojureElementType
impl<'de> Deserialize<'de> for ClojureElementType
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 ClojureElementType
impl ElementType for ClojureElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_root(&self) -> bool
fn is_root(&self) -> bool
Returns true if this element represents the root of the parsed tree. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this element represents an error condition. Read more
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<ClojureTokenType> for ClojureElementType
impl From<ClojureTokenType> for ClojureElementType
Source§fn from(token: ClojureTokenType) -> Self
fn from(token: ClojureTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for ClojureElementType
impl Hash for ClojureElementType
Source§impl Ord for ClojureElementType
impl Ord for ClojureElementType
Source§fn cmp(&self, other: &ClojureElementType) -> Ordering
fn cmp(&self, other: &ClojureElementType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClojureElementType
impl PartialEq for ClojureElementType
Source§impl PartialOrd for ClojureElementType
impl PartialOrd for ClojureElementType
Source§impl Serialize for ClojureElementType
impl Serialize for ClojureElementType
impl Copy for ClojureElementType
impl Eq for ClojureElementType
impl StructuralPartialEq for ClojureElementType
Auto Trait Implementations§
impl Freeze for ClojureElementType
impl RefUnwindSafe for ClojureElementType
impl Send for ClojureElementType
impl Sync for ClojureElementType
impl Unpin for ClojureElementType
impl UnwindSafe for ClojureElementType
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