Struct wolfram_expr::Normal
source · [−]pub struct Normal<E = Expr> { /* private fields */ }
Expand description
Wolfram Language “normal” expression: f[...]
.
A normal expression is any expression that consists of a head and zero or more arguments.
Implementations
sourceimpl Normal
impl Normal
sourcepub fn new<E: Into<Expr>>(head: E, contents: Vec<Expr>) -> Self
pub fn new<E: Into<Expr>>(head: E, contents: Vec<Expr>) -> Self
Construct a new normal expression from the head and elements.
sourcepub fn elements(&self) -> &[Expr]
pub fn elements(&self) -> &[Expr]
The elements of this normal expression.
If head
conceptually represents a function, these are the arguments that are
being applied to head
.
sourcepub fn into_elements(self) -> Vec<Expr>
pub fn into_elements(self) -> Vec<Expr>
The elements of this normal expression.
Use Normal::elements()
to get a reference to this value.
Trait Implementations
impl<E: Eq> Eq for Normal<E>
impl<E> StructuralEq for Normal<E>
impl<E> StructuralPartialEq for Normal<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for Normal<E> where
E: RefUnwindSafe,
impl<E> Send for Normal<E> where
E: Send,
impl<E> Sync for Normal<E> where
E: Sync,
impl<E> Unpin for Normal<E> where
E: Unpin,
impl<E> UnwindSafe for Normal<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more