pub struct MathConstant(pub i64);
Tuple Fields§
§0: i64
Implementations§
Source§impl MathConstant
impl MathConstant
pub const ONE: MathConstant
pub const PI: MathConstant
pub const HALF_PI: MathConstant
pub const TAU: MathConstant
pub const E: MathConstant
pub const SQRT2: MathConstant
pub const INF: MathConstant
pub const NAN: MathConstant
pub const MAX: MathConstant
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MathConstant
impl Debug for MathConstant
Source§impl From<MathConstant> for i64
impl From<MathConstant> for i64
Source§fn from(v: MathConstant) -> Self
fn from(v: MathConstant) -> Self
Converts to this type from the input type.
Source§impl From<i64> for MathConstant
impl From<i64> for MathConstant
Source§impl FromVariant for MathConstant
impl FromVariant for MathConstant
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
Source§impl Hash for MathConstant
impl Hash 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 · 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
Source§impl PartialEq for MathConstant
impl PartialEq for MathConstant
Source§impl PartialOrd for MathConstant
impl PartialOrd for MathConstant
impl Copy for MathConstant
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.