Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add documentation for operator constructor functions #24

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 deletions src/elements/mi/dict.rs
Original file line number Diff line number Diff line change
@@ -1,183 +1,227 @@
use super::Ident;

#[allow(missing_docs)]
impl Ident {
/// Create a '∅' identifier.
pub fn empty_set() -> Self {
Self::from("\u{2205}")
}

/// Create a '∞' identifier.
pub fn infinity() -> Self {
Self::from("∞")
}

/// Create a 'ℵ' identifier.
pub fn aleph() -> Self {
Self::from("ℵ")
}

/// Create a 'ℕ' identifier.
pub fn set_natural() -> Self {
Self::from("\u{2115}")
}

/// Create a 'ℤ' identifier.
pub fn set_integer() -> Self {
Self::from("\u{2124}")
}

/// Create a 'ℚ' identifier.
pub fn set_rational() -> Self {
Self::from("\u{211A}")
}

/// Create a 'ℝ' identifier.
pub fn set_irrational() -> Self {
Self::from("\u{211D}")
}

/// Create a 'ℂ' identifier.
pub fn set_complex() -> Self {
Self::from("\u{2102}")
}

/// Create a '𝕂' identifier.
pub fn set_body() -> Self {
Self::from("\u{1D542}")
}

/// Create a '𝛼' identifier.
pub fn alpha() -> Self {
Self::from("\u{1D6FC}")
}

/// Create a '𝛽' identifier.
pub fn beta() -> Self {
Self::from("\u{1D6FD}")
}

/// Create a '𝛾' identifier.
pub fn gamma() -> Self {
Self::from("\u{1D6FE}")
}

/// Create a 'Γ' identifier.
pub fn big_gamma() -> Self {
Self::from("\u{0393}")
}

/// Create a '𝛿' identifier.
pub fn delta() -> Self {
Self::from("\u{1D6FF}")
}

/// Create a 'Δ' identifier.
pub fn big_delta() -> Self {
Self::from("\u{0394}")
}

/// Create a '𝜀' identifier.
pub fn epsilon() -> Self {
Self::from("\u{1D700}")
}

/// Create a '𝜖' identifier.
pub fn varepsilon() -> Self {
Self::from("\u{1D716}")
}

/// Create a '𝜁' identifier.
pub fn zeta() -> Self {
Self::from("\u{1D701}")
}

/// Create a '𝜂' identifier.
pub fn eta() -> Self {
Self::from("\u{1D702}")
}

/// Create a '𝜃' identifier.
pub fn theta() -> Self {
Self::from("\u{1D703}")
}

/// Create a 'Θ' identifier.
pub fn big_theta() -> Self {
Self::from("\u{0398}")
}

/// Create a '𝜗' identifier.
pub fn vartheta() -> Self {
Self::from("\u{1D717}")
}

/// Create a '𝜄' identifier.
pub fn iota() -> Self {
Self::from("\u{1D704}")
}

/// Create a '𝜅' identifier.
pub fn kappa() -> Self {
Self::from("\u{1D705}")
}

/// Create a '𝜆' identifier.
pub fn lambda() -> Self {
Self::from("\u{1D706}")
}

/// Create a 'Λ' identifier.
pub fn big_lambda() -> Self {
Self::from("\u{039B}")
}

/// Create a '𝜇' identifier.
pub fn mu() -> Self {
Self::from("\u{1D707}")
}

/// Create a '𝜈' identifier.
pub fn nu() -> Self {
Self::from("\u{1D708}")
}

/// Create a '𝜉' identifier.
pub fn xi() -> Self {
Self::from("\u{1D709}")
}

/// Create a 'Ξ' identifier.
pub fn big_xi() -> Self {
Self::from("\u{039E}")
}

/// Create a '𝜋' identifier.
pub fn pi() -> Self {
Self::from("\u{1D70B}")
}

/// Create a 'Π' identifier.
pub fn big_pi() -> Self {
Self::from("\u{03A0}")
}

/// Create a '𝜌' identifier.
pub fn rho() -> Self {
Self::from("\u{1D70C}")
}

/// Create a '𝜎' identifier.
pub fn sigma() -> Self {
Self::from("\u{1D70E}")
}

/// Create a 'Σ' identifier.
pub fn big_sigma() -> Self {
Self::from("\u{03A3}")
}

/// Create a '𝜏' identifier.
pub fn tau() -> Self {
Self::from("\u{1D70F}")
}

/// Create a '𝜐' identifier.
pub fn upsilon() -> Self {
Self::from("\u{1D710}")
}

/// Create a '𝜑' identifier.
pub fn phi() -> Self {
Self::from("\u{1D711}")
}

/// Create a 'Φ' identifier.
pub fn big_phi() -> Self {
Self::from("\u{03A6}")
}

/// Create a '𝜙' identifier.
pub fn varphi() -> Self {
Self::from("\u{1D719}")
}

/// Create a '𝜓' identifier.
pub fn chi() -> Self {
Self::from("\u{1D713}")
}

/// Create a 'ψ' identifier.
pub fn psi() -> Self {
Self::from("\u{1D714}")
Self::from("\u{03C8}")
}

/// Create a 'Ψ' identifier.
pub fn big_psi() -> Self {
Self::from("\u{03A8}")
}

/// Create a 'ω' identifier.
pub fn omega() -> Self {
Self::from("\u{1D715}")
Self::from("\u{03C9}")
}

/// Create a 'Ω' identifier.
pub fn big_omega() -> Self {
Self::from("\u{03A9}")
}
Expand Down
Loading