pub enum ConstantTypes {
Pi,
HalfPi,
ThirdPi,
QuarterPi,
SixthPi,
EighthPi,
TwoPi,
E,
C,
G,
Phi,
}Expand description
Types of constants
Variants§
Pi
Pi
HalfPi
Pi/2
ThirdPi
Pi/3
QuarterPi
Pi/4
SixthPi
Pi/6
EighthPi
Pi/8
TwoPi
2*pi
E
Euler’s number
C
Speed of light
G
Gravitational constant
Phi
Golden ratio
Trait Implementations§
Source§impl Clone for ConstantTypes
impl Clone for ConstantTypes
Source§fn clone(&self) -> ConstantTypes
fn clone(&self) -> ConstantTypes
Returns a duplicate of the value. Read more
1.0.0 · 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 ConstantTypes
impl Debug for ConstantTypes
Source§impl Hash for ConstantTypes
impl Hash for ConstantTypes
Source§impl Ord for ConstantTypes
impl Ord for ConstantTypes
Source§fn cmp(&self, other: &ConstantTypes) -> Ordering
fn cmp(&self, other: &ConstantTypes) -> 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 ConstantTypes
impl PartialEq for ConstantTypes
Source§impl PartialOrd for ConstantTypes
impl PartialOrd for ConstantTypes
impl Copy for ConstantTypes
impl Eq for ConstantTypes
impl StructuralPartialEq for ConstantTypes
Auto Trait Implementations§
impl Freeze for ConstantTypes
impl RefUnwindSafe for ConstantTypes
impl Send for ConstantTypes
impl Sync for ConstantTypes
impl Unpin for ConstantTypes
impl UnwindSafe for ConstantTypes
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