#[non_exhaustive]pub enum ExprKind<E = Expr> {
Integer(i64),
Real(NotNan<f64>),
String(String),
Symbol(Symbol),
Normal(Normal<E>),
ByteArray(Vec<u8>),
Association(Vec<RuleEntry>),
NumericArray(ArrayBuf<NumericArrayEnum>),
PackedArray(ArrayBuf<PackedArrayEnum>),
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)
A machine (64-bit) integer.
Real(NotNan<f64>)
A machine (64-bit) real, guaranteed non-NaN.
String(String)
A string.
Symbol(Symbol)
A symbol such as System`Plus.
Normal(Normal<E>)
A normal expression head[args…] — see Normal.
ByteArray(Vec<u8>)
A ByteArray — a flat buffer of bytes.
Association(Vec<RuleEntry>)
An Association of key/value rules.
NumericArray(ArrayBuf<NumericArrayEnum>)
A NumericArray — a packed array of fixed-width numbers.
PackedArray(ArrayBuf<PackedArrayEnum>)
A PackedArray — a packed rectangular array of machine numbers.
BigInteger(BigInteger)
An arbitrary-precision integer.
BigReal(BigReal)
An arbitrary-precision real.
Trait Implementations§
impl<E> Eq for ExprKind<E>where
E: Eq,
Source§impl<E> Ord for ExprKind<E>where
E: Ord,
impl<E> Ord for ExprKind<E>where
E: Ord,
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> PartialOrd for ExprKind<E>where
E: PartialOrd,
impl<E> PartialOrd for ExprKind<E>where
E: PartialOrd,
impl<E> StructuralPartialEq for ExprKind<E>where
E: PartialEq,
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