#[non_exhaustive]pub enum ExprKind<E = Expr> {
Integer(i64),
Real(F64),
String(String),
Symbol(Symbol),
Normal(Normal<E>),
ByteArray(ByteArray),
Association(Association),
NumericArray(NumericArray),
PackedArray(PackedArray),
BigInteger(BigInteger),
BigReal(BigReal),
}Expand description
Wolfram Language expression variants.
Marked #[non_exhaustive] so that future variant additions (for new WXF wire types,
etc.) are non-breaking. Downstream match expressions over ExprKind from outside
this crate must include a _ => … arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Integer(i64)
Real(F64)
String(String)
Symbol(Symbol)
Normal(Normal<E>)
ByteArray(ByteArray)
Association(Association)
NumericArray(NumericArray)
PackedArray(PackedArray)
BigInteger(BigInteger)
BigReal(BigReal)
Trait Implementations§
impl<E: Eq> Eq for ExprKind<E>
Source§impl<E: Ord> Ord for ExprKind<E>
impl<E: Ord> Ord for ExprKind<E>
1.21.0 (const: unstable) · 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<E: PartialEq> PartialEq for ExprKind<E>
impl<E: PartialEq> PartialEq for ExprKind<E>
Source§impl<E: PartialOrd> PartialOrd for ExprKind<E>
impl<E: PartialOrd> PartialOrd for ExprKind<E>
impl<E> StructuralPartialEq for ExprKind<E>
Auto Trait Implementations§
impl<E> Freeze for ExprKind<E>where
E: Freeze,
impl<E> RefUnwindSafe for ExprKind<E>where
E: RefUnwindSafe,
impl<E> Send for ExprKind<E>where
E: Send,
impl<E> Sync for ExprKind<E>where
E: Sync,
impl<E> Unpin for ExprKind<E>where
E: Unpin,
impl<E> UnsafeUnpin for ExprKind<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ExprKind<E>where
E: UnwindSafe,
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