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§
Source§impl 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> StructuralPartialEq for Normal<E>
Auto Trait Implementations§
impl<E> Freeze for Normal<E>where
E: Freeze,
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§
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