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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more