pub enum MathConstant {
Pi,
Tau,
E,
Unknown(Unknown),
}Expand description
Math constants referenceable by name.
Variants§
Pi
The circle constant π (dimensionless).
Tau
The circle constant τ = 2π (dimensionless).
E
Euler’s number e (dimensionless).
Unknown(Unknown)
An unknown variant.
Implementations§
Trait Implementations§
Source§impl Clone for MathConstant
impl Clone for MathConstant
Source§fn clone(&self) -> MathConstant
fn clone(&self) -> MathConstant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MathConstant
impl Debug for MathConstant
Source§impl<'de> Deserialize<'de> for MathConstant
impl<'de> Deserialize<'de> for MathConstant
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MathConstant
impl Display for MathConstant
impl Eq for MathConstant
Source§impl FromPlain for MathConstant
impl FromPlain for MathConstant
Source§type Err = ParseEnumError
type Err = ParseEnumError
The error type returned when parsing fails.
Source§fn from_plain(v: &str) -> Result<MathConstant, ParseEnumError>
fn from_plain(v: &str) -> Result<MathConstant, ParseEnumError>
Parse a value from its Conjure PLAIN string representation.
Source§impl FromStr for MathConstant
impl FromStr for MathConstant
Source§type Err = ParseEnumError
type Err = ParseEnumError
The associated error which can be returned from parsing.
Source§fn from_str(v: &str) -> Result<MathConstant, ParseEnumError>
fn from_str(v: &str) -> Result<MathConstant, ParseEnumError>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for MathConstant
impl Hash for MathConstant
impl LogSafe for MathConstant
Source§impl Ord for MathConstant
impl Ord for MathConstant
Source§fn cmp(&self, other: &MathConstant) -> Ordering
fn cmp(&self, other: &MathConstant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MathConstant
impl PartialEq for MathConstant
Source§impl PartialOrd for MathConstant
impl PartialOrd for MathConstant
Source§impl Plain for MathConstant
impl Plain for MathConstant
Source§impl Serialize for MathConstant
impl Serialize for MathConstant
impl StructuralPartialEq for MathConstant
Auto Trait Implementations§
impl Freeze for MathConstant
impl RefUnwindSafe for MathConstant
impl Send for MathConstant
impl Sync for MathConstant
impl Unpin for MathConstant
impl UnsafeUnpin for MathConstant
impl UnwindSafe for MathConstant
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.