pub enum Operator {
Show 40 variants Add, Multiply, Equals, Divide, Subtract, Sqrt, Lparen, Rparen, Compose, Factorial, Exp, Power, Gradient(Gradient), Dot, Div, Abs, Derivative(Derivative), Sin, Cos, Tan, Sec, Csc, Cot, Arcsin, Arccos, Arctan, Arcsec, Arccsc, Arccot, Mean, Summation(Summation), Cross, Hat(Hat), Int(Int), Laplacian, SurfaceInt, Comma, Logarithm(Logarithm), Min, Other(String),
}

Variants§

§

Add

Addition operator

§

Multiply

Multiplication operator

§

Equals

Equals operator

§

Divide

Division operator

§

Subtract

Subtraction operator

§

Sqrt

Square root operator

§

Lparen

Left parenthesis; only for internal use (Pratt parsing)

§

Rparen

Right parenthesis; only for internal use (Pratt parsing)

§

Compose

Composition operator

§

Factorial

Factorial operator

§

Exp

Exponential operator

§

Power

Power (exponent) operator

§

Gradient(Gradient)

Gradient operator

§

Dot

Dot product operator

§

Div

Divergence operator

§

Abs

Absolute value

§

Derivative(Derivative)

Includes derivative operator with varying derivative notation

§

Sin

Sine function

§

Cos

Cosine function

§

Tan

Tangent function

§

Sec

Secant function

§

Csc

Cosecant function

§

Cot

Cotangent function

§

Arcsin

Arcsine function

§

Arccos

Arccosine function

§

Arctan

Arctangent function

§

Arcsec

Arcsecant function

§

Arccsc

Arccosecant function

§

Arccot

Arccotangent function

§

Mean

Mean operator

§

Summation(Summation)

Summation operator

§

Cross

Cross product operator

§

Hat(Hat)

Hat operator with component, e.g. \hat{x}

§

Int(Int)

Integrals

§

Laplacian

Laplacian operator

§

SurfaceInt

Closed surface integral operator –need to include explit dS integration variable when translating to latex

§

Comma

only for internal use

§

Logarithm(Logarithm)

Logarithm operator

§

Min

Minimum operator

§

Other(String)

Implementations§

source§

impl Operator

source

pub fn new_add() -> Self

Constructs a new Operator::Add.

source§

impl Operator

source

pub fn new_multiply() -> Self

Constructs a new Operator::Multiply.

source§

impl Operator

source

pub fn new_equals() -> Self

Constructs a new Operator::Equals.

source§

impl Operator

source

pub fn new_divide() -> Self

Constructs a new Operator::Divide.

source§

impl Operator

source

pub fn new_subtract() -> Self

Constructs a new Operator::Subtract.

source§

impl Operator

source

pub fn new_sqrt() -> Self

Constructs a new Operator::Sqrt.

source§

impl Operator

source

pub fn new_lparen() -> Self

Constructs a new Operator::Lparen.

source§

impl Operator

source

pub fn new_rparen() -> Self

Constructs a new Operator::Rparen.

source§

impl Operator

source

pub fn new_compose() -> Self

Constructs a new Operator::Compose.

source§

impl Operator

source

pub fn new_factorial() -> Self

Constructs a new Operator::Factorial.

source§

impl Operator

source

pub fn new_exp() -> Self

Constructs a new Operator::Exp.

source§

impl Operator

source

pub fn new_power() -> Self

Constructs a new Operator::Power.

source§

impl Operator

source

pub fn new_gradient(f0: Gradient) -> Self

Constructs a new Operator::Gradient.

source§

impl Operator

source

pub fn new_dot() -> Self

Constructs a new Operator::Dot.

source§

impl Operator

source

pub fn new_div() -> Self

Constructs a new Operator::Div.

source§

impl Operator

source

pub fn new_abs() -> Self

Constructs a new Operator::Abs.

source§

impl Operator

source

pub fn new_derivative(f0: Derivative) -> Self

Constructs a new Operator::Derivative.

source§

impl Operator

source

pub fn new_sin() -> Self

Constructs a new Operator::Sin.

source§

impl Operator

source

pub fn new_cos() -> Self

Constructs a new Operator::Cos.

source§

impl Operator

source

pub fn new_tan() -> Self

Constructs a new Operator::Tan.

source§

impl Operator

source

pub fn new_sec() -> Self

Constructs a new Operator::Sec.

source§

impl Operator

source

pub fn new_csc() -> Self

Constructs a new Operator::Csc.

source§

impl Operator

source

pub fn new_cot() -> Self

Constructs a new Operator::Cot.

source§

impl Operator

source

pub fn new_arcsin() -> Self

Constructs a new Operator::Arcsin.

source§

impl Operator

source

pub fn new_arccos() -> Self

Constructs a new Operator::Arccos.

source§

impl Operator

source

pub fn new_arctan() -> Self

Constructs a new Operator::Arctan.

source§

impl Operator

source

pub fn new_arcsec() -> Self

Constructs a new Operator::Arcsec.

source§

impl Operator

source

pub fn new_arccsc() -> Self

Constructs a new Operator::Arccsc.

source§

impl Operator

source

pub fn new_arccot() -> Self

Constructs a new Operator::Arccot.

source§

impl Operator

source

pub fn new_mean() -> Self

Constructs a new Operator::Mean.

source§

impl Operator

source

pub fn new_summation(f0: Summation) -> Self

Constructs a new Operator::Summation.

source§

impl Operator

source

pub fn new_cross() -> Self

Constructs a new Operator::Cross.

source§

impl Operator

source

pub fn new_hat(f0: Hat) -> Self

Constructs a new Operator::Hat.

source§

impl Operator

source

pub fn new_int(f0: Int) -> Self

Constructs a new Operator::Int.

source§

impl Operator

source

pub fn new_laplacian() -> Self

Constructs a new Operator::Laplacian.

source§

impl Operator

source

pub fn new_surface_int() -> Self

Constructs a new Operator::SurfaceInt.

source§

impl Operator

source

pub fn new_comma() -> Self

Constructs a new Operator::Comma.

source§

impl Operator

source

pub fn new_logarithm(f0: Logarithm) -> Self

Constructs a new Operator::Logarithm.

source§

impl Operator

source

pub fn new_min() -> Self

Constructs a new Operator::Min.

source§

impl Operator

source

pub fn new_other(f0: String) -> Self

Constructs a new Operator::Other.

Trait Implementations§

source§

impl Clone for Operator

source§

fn clone(&self) -> Operator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Operator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Operator

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Operator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Operator

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl JsonSchema for Operator

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl Ord for Operator

source§

fn cmp(&self, other: &Operator) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Operator

source§

fn eq(&self, other: &Operator) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Operator

source§

fn partial_cmp(&self, other: &Operator) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Operator

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'__s> ToSchema<'__s> for Operator

source§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
source§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the ToSchema::schema. Read more
source§

impl Eq for Operator

source§

impl StructuralPartialEq for Operator

Auto Trait Implementations§

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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,