pub enum WolframElementType {
Root,
Expression,
Call,
Arguments,
List,
Symbol,
Literal,
BinaryExpr,
PrefixExpr,
PostfixExpr,
Error,
}Expand description
Element types for the Wolfram language.
Variants§
Root
Root node of the tree.
Expression
A general expression.
Call
A function call, e.g., f[x].
Arguments
A list of arguments, e.g., [x, y].
List
A list, e.g., {a, b}.
Symbol
A symbol or identifier.
Literal
A literal value.
BinaryExpr
A binary expression, e.g., x + y.
PrefixExpr
A prefix expression, e.g., !x.
PostfixExpr
A postfix expression, e.g., x!.
Error
An error element.
Trait Implementations§
Source§impl Clone for WolframElementType
impl Clone for WolframElementType
Source§fn clone(&self) -> WolframElementType
fn clone(&self) -> WolframElementType
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 WolframElementType
impl Debug for WolframElementType
Source§impl<'de> Deserialize<'de> for WolframElementType
impl<'de> Deserialize<'de> for WolframElementType
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 Display for WolframElementType
impl Display for WolframElementType
Source§impl ElementType for WolframElementType
impl ElementType for WolframElementType
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<WolframTokenType> for WolframElementType
impl From<WolframTokenType> for WolframElementType
Source§fn from(token: WolframTokenType) -> Self
fn from(token: WolframTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for WolframElementType
impl Hash for WolframElementType
Source§impl PartialEq for WolframElementType
impl PartialEq for WolframElementType
Source§impl Serialize for WolframElementType
impl Serialize for WolframElementType
impl Copy for WolframElementType
impl Eq for WolframElementType
impl StructuralPartialEq for WolframElementType
Auto Trait Implementations§
impl Freeze for WolframElementType
impl RefUnwindSafe for WolframElementType
impl Send for WolframElementType
impl Sync for WolframElementType
impl Unpin for WolframElementType
impl UnsafeUnpin for WolframElementType
impl UnwindSafe for WolframElementType
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