Struct alemat::elements::Operator

source ·
pub struct Operator { /* private fields */ }
Expand description

The mo element represents an operator or anything that should be rendered as an operator. In general, the notational conventions for mathematical operators are quite complicated, and therefore MathML provides a relatively sophisticated mechanism for specifying the rendering behavior of an <mo> element.

Implementations§

source§

impl Operator

source

pub fn plus() -> Self

Create a ‘+’ operator.

source

pub fn minus() -> Self

Create a ‘-’ operator.

source

pub fn dot() -> Self

Create a ‘⋅’ operator.

source

pub fn double_dot() -> Self

Create a ‘¨’ operator.

source

pub fn asterisk() -> Self

Create a ‘∗’ operator.

source

pub fn star() -> Self

Create a ‘⋆’ operator.

source

pub fn solidus() -> Self

Create a ‘/’ operator.

source

pub fn set_minus() -> Self

Create a ‘∖’ operator.

source

pub fn mult() -> Self

Create a ‘×’ operator.

source

pub fn div() -> Self

Create a ‘÷’ operator.

source

pub fn lfactor() -> Self

Create a ‘⋉’ operator.

source

pub fn rfactor() -> Self

Create a ‘⋊’ operator.

source

pub fn bowtie() -> Self

Create a ‘⋈’ operator.

source

pub fn ring() -> Self

Create a ‘∘’ operator.

source

pub fn circle_plus() -> Self

Create a ‘⊕’ operator.

source

pub fn circle_times() -> Self

Create a ‘⊗’ operator.

source

pub fn circle_dot() -> Self

Create a ‘⊙’ operator.

source

pub fn sum() -> Self

Create a ‘∑’ operator.

source

pub fn prod() -> Self

Create a ‘∏’ operator.

source

pub fn wedge() -> Self

Create a ‘∧’ operator.

source

pub fn big_wedge() -> Self

Create a ‘⋀’ operator.

source

pub fn vee() -> Self

Create a ‘∨’ operator.

source

pub fn big_vee() -> Self

Create a ‘⋁’ operator.

source

pub fn cap() -> Self

Create a ‘∩’ operator.

source

pub fn big_cap() -> Self

Create a ‘⋂’ operator.

source

pub fn cup() -> Self

Create a ‘∪’ operator.

source

pub fn big_cup() -> Self

Create a ‘⋃’ operator.

source

pub fn integral() -> Self

Create a ‘∫’ operator.

source

pub fn circle_integral() -> Self

Create a ‘∮’ operator.

source

pub fn partial_diff() -> Self

Create a ‘∂’ operator.

source

pub fn nabla() -> Self

Create a ‘∇’ operator.

source

pub fn plus_minus() -> Self

Create a ‘±’ operator.

source

pub fn therefore() -> Self

Create a ‘∴’ operator.

source

pub fn because() -> Self

Create a ‘∵’ operator.

source

pub fn angle() -> Self

Create a ‘∠’ operator.

source

pub fn lfloor() -> Self

Create a ‘⌊’ operator.

source

pub fn rfloor() -> Self

Create a ‘⌋’ operator.

source

pub fn lceiling() -> Self

Create a ‘⌈’ operator.

source

pub fn rceiling() -> Self

Create a ‘⌉’ operator.

source

pub fn assign() -> Self

Create a ‘≔’ operator.

source

pub fn eq() -> Self

Create a ‘=’ operator.

source

pub fn not_eq() -> Self

Create a ‘≠’ operator.

source

pub fn lt() -> Self

Create a ‘<’ operator.

source

pub fn gt() -> Self

Create a ‘>’ operator.

source

pub fn le() -> Self

Create a ‘≤’ operator.

source

pub fn ge() -> Self

Create a ‘≥’ operator.

source

pub fn prec() -> Self

Create a ‘≺’ operator.

source

pub fn succ() -> Self

Create a ‘≻’ operator.

source

pub fn preceq() -> Self

Create a ‘≼’ operator.

source

pub fn succeq() -> Self

Create a ‘≽’ operator.

source

pub fn in_set() -> Self

Create a ‘∈’ operator.

source

pub fn not_in_set() -> Self

Create a ‘∉’ operator.

source

pub fn subset() -> Self

Create a ‘⊂’ operator.

source

pub fn supset() -> Self

Create a ‘⊃’ operator.

source

pub fn subseteq() -> Self

Create a ‘⊆’ operator.

source

pub fn supseteq() -> Self

Create a ‘⊇’ operator.

source

pub fn equivalent() -> Self

Create a ‘≡’ operator.

source

pub fn congruent() -> Self

Create a ‘≅’ operator.

source

pub fn approx() -> Self

Create a ‘≈’ operator.

source

pub fn propto() -> Self

Create a ‘∝’ operator.

source

pub fn not() -> Self

Create a ‘¬’ operator.

source

pub fn implies() -> Self

Create a ‘⇒’ operator.

source

pub fn log_if() -> Self

Create a ‘⇐’ operator.

source

pub fn iff() -> Self

Create a ‘⇔’ operator.

source

pub fn forall() -> Self

Create a ‘∀’ operator.

source

pub fn exists() -> Self

Create a ‘∃’ operator.

source

pub fn bottom() -> Self

Create a ‘⊥’ operator.

source

pub fn top() -> Self

Create a ‘⊤’ operator.

source

pub fn vdash() -> Self

Create a ‘⊢’ operator.

source

pub fn models() -> Self

Create a ‘⊨’ operator.

source

pub fn lparens() -> Self

Create a ‘(’ operator.

source

pub fn rparens() -> Self

Create a ‘)’ operator.

source

pub fn oparens() -> Self

Create a ‘⌢’ operator.

source

pub fn uparens() -> Self

Create a ‘⌣’ operator.

source

pub fn lbracket() -> Self

Create a ‘[’ operator.

source

pub fn rbracket() -> Self

Create a ‘]’ operator.

source

pub fn obracket() -> Self

Create a ‘⎴’ operator.

source

pub fn ubracket() -> Self

Create a ‘⎵’ operator.

source

pub fn lbrace() -> Self

Create a ‘{’ operator.

source

pub fn rbrace() -> Self

Create a ‘}’ operator.

source

pub fn obrace() -> Self

Create a ‘⏞’ operator.

source

pub fn ubrace() -> Self

Create a ‘⏟’ operator.

source

pub fn langle() -> Self

Create a ‘⟨’ operator.

source

pub fn rangle() -> Self

Create a ‘⟩’ operator.

source

pub fn vert_bar() -> Self

Create a ‘|’ operator.

source

pub fn norm() -> Self

Create a ‘∥’ operator.

source

pub fn hat() -> Self

Create a ‘^’ operator.

source

pub fn circumflex() -> Self

Create a ‘^’ operator.

source

pub fn bar() -> Self

Create a ‘¯’ operator.

source

pub fn macron() -> Self

Create a ‘¯’ operator.

source

pub fn rarrow() -> Self

Create a ‘→’ operator.

source

pub fn larrow() -> Self

Create a ‘←’ operator.

source

pub fn tilde() -> Self

Create a ‘~’ operator.

source§

impl Operator

source

pub fn builder() -> OperatorBuilder<Uninit>

Create a builder for Operator element.

source

pub fn op(&self) -> &str

Get a reference to the inner content of the Operator element.

source

pub fn attributes(&self) -> &[OperatorAttr]

Get a reference to all attributes of the Operator element.

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 From<Operator> for Element

source§

fn from(value: Operator) -> Self

Converts to this type from the input type.
source§

impl<T> From<T> for Operator
where T: Into<String>,

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl IntoElements for Operator

source§

fn into_elements(self) -> Elements

Converts the type into elements.
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 Eq for Operator

source§

impl StructuralEq 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<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, 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.