pub enum Real {
Rational(Rational),
Irrational(Irrational),
}
Variants§
Rational(Rational)
Irrational(Irrational)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Real
impl<'de> Deserialize<'de> for Real
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 From<Irrational> for Real
impl From<Irrational> for Real
source§fn from(value: Irrational) -> Self
fn from(value: Irrational) -> Self
Converts to this type from the input type.
source§impl Ord for Real
impl Ord for Real
source§impl PartialOrd for Real
impl PartialOrd for Real
impl Eq for Real
impl StructuralPartialEq for Real
Auto Trait Implementations§
impl Freeze for Real
impl RefUnwindSafe for Real
impl Send for Real
impl Sync for Real
impl Unpin for Real
impl UnwindSafe for Real
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)