Expression

Struct Expression 

Source
pub struct Expression<E: ExpressionBase> { /* private fields */ }
Expand description

Expression wrapper

Implementations§

Source§

impl<E: ExpressionBase> Expression<E>

Source

pub fn new(expr: E) -> Self

Source

pub fn get(&self, i: usize) -> E::Output

Trait Implementations§

Source§

impl<T: Float + FromPrimitive> BinaryOps<T> for Expression<ConstantExpr<T>>

Source§

fn add(&self, other: &Self) -> Self

Source§

fn sub(&self, other: &Self) -> Self

Source§

fn mul(&self, other: &Self) -> Self

Source§

fn div(&self, other: &Self) -> Self

Source§

impl<T: Float + FromPrimitive> MathOps<T> for Expression<ConstantExpr<T>>

Source§

fn abs(&self) -> Self

Source§

fn norm(&self) -> Self

Source§

fn exp(&self) -> Self

Source§

fn log(&self) -> Self

Source§

fn sqrt(&self) -> Self

Source§

fn conj(&self) -> Self

Source§

fn real(&self) -> Self

Source§

fn imag(&self) -> Self

Auto Trait Implementations§

§

impl<E> Freeze for Expression<E>
where E: Freeze,

§

impl<E> RefUnwindSafe for Expression<E>
where E: RefUnwindSafe,

§

impl<E> Send for Expression<E>
where E: Send,

§

impl<E> Sync for Expression<E>
where E: Sync,

§

impl<E> Unpin for Expression<E>
where E: Unpin,

§

impl<E> UnwindSafe for Expression<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.