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
impl Operator
sourcepub fn new_multiply() -> Self
pub fn new_multiply() -> Self
Constructs a new Operator::Multiply
.
source§impl Operator
impl Operator
sourcepub fn new_equals() -> Self
pub fn new_equals() -> Self
Constructs a new Operator::Equals
.
source§impl Operator
impl Operator
sourcepub fn new_divide() -> Self
pub fn new_divide() -> Self
Constructs a new Operator::Divide
.
source§impl Operator
impl Operator
sourcepub fn new_subtract() -> Self
pub fn new_subtract() -> Self
Constructs a new Operator::Subtract
.
source§impl Operator
impl Operator
sourcepub fn new_lparen() -> Self
pub fn new_lparen() -> Self
Constructs a new Operator::Lparen
.
source§impl Operator
impl Operator
sourcepub fn new_rparen() -> Self
pub fn new_rparen() -> Self
Constructs a new Operator::Rparen
.
source§impl Operator
impl Operator
sourcepub fn new_compose() -> Self
pub fn new_compose() -> Self
Constructs a new Operator::Compose
.
source§impl Operator
impl Operator
sourcepub fn new_factorial() -> Self
pub fn new_factorial() -> Self
Constructs a new Operator::Factorial
.
source§impl Operator
impl Operator
sourcepub fn new_gradient(f0: Gradient) -> Self
pub fn new_gradient(f0: Gradient) -> Self
Constructs a new Operator::Gradient
.
source§impl Operator
impl Operator
sourcepub fn new_derivative(f0: Derivative) -> Self
pub fn new_derivative(f0: Derivative) -> Self
Constructs a new Operator::Derivative
.
source§impl Operator
impl Operator
sourcepub fn new_arcsin() -> Self
pub fn new_arcsin() -> Self
Constructs a new Operator::Arcsin
.
source§impl Operator
impl Operator
sourcepub fn new_arccos() -> Self
pub fn new_arccos() -> Self
Constructs a new Operator::Arccos
.
source§impl Operator
impl Operator
sourcepub fn new_arctan() -> Self
pub fn new_arctan() -> Self
Constructs a new Operator::Arctan
.
source§impl Operator
impl Operator
sourcepub fn new_arcsec() -> Self
pub fn new_arcsec() -> Self
Constructs a new Operator::Arcsec
.
source§impl Operator
impl Operator
sourcepub fn new_arccsc() -> Self
pub fn new_arccsc() -> Self
Constructs a new Operator::Arccsc
.
source§impl Operator
impl Operator
sourcepub fn new_arccot() -> Self
pub fn new_arccot() -> Self
Constructs a new Operator::Arccot
.
source§impl Operator
impl Operator
sourcepub fn new_summation(f0: Summation) -> Self
pub fn new_summation(f0: Summation) -> Self
Constructs a new Operator::Summation
.
source§impl Operator
impl Operator
sourcepub fn new_laplacian() -> Self
pub fn new_laplacian() -> Self
Constructs a new Operator::Laplacian
.
source§impl Operator
impl Operator
sourcepub fn new_surface_int() -> Self
pub fn new_surface_int() -> Self
Constructs a new Operator::SurfaceInt
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for Operator
impl JsonSchema for Operator
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl Ord for Operator
impl Ord for Operator
source§impl PartialEq for Operator
impl PartialEq for Operator
source§impl PartialOrd for Operator
impl PartialOrd for Operator
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<'__s> ToSchema<'__s> for Operator
impl<'__s> ToSchema<'__s> for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.