Struct alemat::elements::Ident

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

The mi (Ident) element represents a symbolic name or arbitrary text that should be rendered as an identifier. Identifiers can include variables, function names, and symbolic constants.

Implementations§

source§

impl Ident

source

pub fn empty_set() -> Self

Create a ‘∅’ identifier.

source

pub fn infinity() -> Self

Create a ‘∞’ identifier.

source

pub fn aleph() -> Self

Create a ‘ℵ’ identifier.

source

pub fn set_natural() -> Self

Create a ‘ℕ’ identifier.

source

pub fn set_integer() -> Self

Create a ‘ℤ’ identifier.

source

pub fn set_rational() -> Self

Create a ‘ℚ’ identifier.

source

pub fn set_irrational() -> Self

Create a ‘ℝ’ identifier.

source

pub fn set_complex() -> Self

Create a ‘ℂ’ identifier.

source

pub fn set_body() -> Self

Create a ‘𝕂’ identifier.

source

pub fn alpha() -> Self

Create a ‘𝛼’ identifier.

source

pub fn beta() -> Self

Create a ‘𝛽’ identifier.

source

pub fn gamma() -> Self

Create a ‘𝛾’ identifier.

source

pub fn big_gamma() -> Self

Create a ‘Γ’ identifier.

source

pub fn delta() -> Self

Create a ‘𝛿’ identifier.

source

pub fn big_delta() -> Self

Create a ‘Δ’ identifier.

source

pub fn epsilon() -> Self

Create a ‘𝜀’ identifier.

source

pub fn varepsilon() -> Self

Create a ‘𝜖’ identifier.

source

pub fn zeta() -> Self

Create a ‘𝜁’ identifier.

source

pub fn eta() -> Self

Create a ‘𝜂’ identifier.

source

pub fn theta() -> Self

Create a ‘𝜃’ identifier.

source

pub fn big_theta() -> Self

Create a ‘Θ’ identifier.

source

pub fn vartheta() -> Self

Create a ‘𝜗’ identifier.

source

pub fn iota() -> Self

Create a ‘𝜄’ identifier.

source

pub fn kappa() -> Self

Create a ‘𝜅’ identifier.

source

pub fn lambda() -> Self

Create a ‘𝜆’ identifier.

source

pub fn big_lambda() -> Self

Create a ‘Λ’ identifier.

source

pub fn mu() -> Self

Create a ‘𝜇’ identifier.

source

pub fn nu() -> Self

Create a ‘𝜈’ identifier.

source

pub fn xi() -> Self

Create a ‘𝜉’ identifier.

source

pub fn big_xi() -> Self

Create a ‘Ξ’ identifier.

source

pub fn pi() -> Self

Create a ‘𝜋’ identifier.

source

pub fn big_pi() -> Self

Create a ‘Π’ identifier.

source

pub fn rho() -> Self

Create a ‘𝜌’ identifier.

source

pub fn sigma() -> Self

Create a ‘𝜎’ identifier.

source

pub fn big_sigma() -> Self

Create a ‘Σ’ identifier.

source

pub fn tau() -> Self

Create a ‘𝜏’ identifier.

source

pub fn upsilon() -> Self

Create a ‘𝜐’ identifier.

source

pub fn phi() -> Self

Create a ‘𝜑’ identifier.

source

pub fn big_phi() -> Self

Create a ‘Φ’ identifier.

source

pub fn varphi() -> Self

Create a ‘𝜙’ identifier.

source

pub fn chi() -> Self

Create a ‘𝜓’ identifier.

source

pub fn psi() -> Self

Create a ‘ψ’ identifier.

source

pub fn big_psi() -> Self

Create a ‘Ψ’ identifier.

source

pub fn omega() -> Self

Create a ‘ω’ identifier.

source

pub fn big_omega() -> Self

Create a ‘Ω’ identifier.

source§

impl Ident

source

pub fn builder() -> IdentBuilder<Uninit>

Create a builder for Ident element.

source

pub fn ident(&self) -> &str

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

source

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

Get a reference to all attributes of the Ident element.

Trait Implementations§

source§

impl Clone for Ident

source§

fn clone(&self) -> Ident

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 Ident

source§

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

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

impl From<Ident> for Element

source§

fn from(value: Ident) -> Self

Converts to this type from the input type.
source§

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

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl IntoElements for Ident

source§

fn into_elements(self) -> Elements

Converts the type into elements.
source§

impl Ord for Ident

source§

fn cmp(&self, other: &Ident) -> 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 Ident

source§

fn eq(&self, other: &Ident) -> 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 Ident

source§

fn partial_cmp(&self, other: &Ident) -> 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 Ident

source§

impl StructuralEq for Ident

source§

impl StructuralPartialEq for Ident

Auto Trait Implementations§

§

impl RefUnwindSafe for Ident

§

impl Send for Ident

§

impl Sync for Ident

§

impl Unpin for Ident

§

impl UnwindSafe for Ident

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.