pub struct Numeric(/* private fields */);
Expand description
A number value
Implementations§
Source§impl Numeric
impl Numeric
Sourcepub fn distance<T: Object>(point: impl Into<Point>, object: T) -> Self
pub fn distance<T: Object>(point: impl Into<Point>, object: T) -> Self
Distance between a point and an object
Sourcepub fn complex(real: impl Into<Numeric>, imaginary: impl Into<Numeric>) -> Self
pub fn complex(real: impl Into<Numeric>, imaginary: impl Into<Numeric>) -> Self
A complex number
Trait Implementations§
Source§impl<T: Into<Numeric>> AddAssign<T> for Numeric
impl<T: Into<Numeric>> AddAssign<T> for Numeric
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<T: Into<Numeric>> DivAssign<T> for Numeric
impl<T: Into<Numeric>> DivAssign<T> for Numeric
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl From<Numeric> for Expression
impl From<Numeric> for Expression
Source§impl<T: Into<Numeric>> MulAssign<T> for Numeric
impl<T: Into<Numeric>> MulAssign<T> for Numeric
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl Num for Numeric
impl Num for Numeric
type FromStrRadixErr = &'static str
Source§fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36
). Read moreSource§impl<T: Into<Numeric>> RemAssign<T> for Numeric
impl<T: Into<Numeric>> RemAssign<T> for Numeric
Source§fn rem_assign(&mut self, rhs: T)
fn rem_assign(&mut self, rhs: T)
Performs the
%=
operation. Read moreAuto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl !Send for Numeric
impl !Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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