pub enum PythonNumberValue {
Bool(bool),
Int(String),
Float(f64),
Complex {
real: f64,
imag: f64,
},
}Expand description
Primitive Python number value metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PythonNumberValue
impl Clone for PythonNumberValue
Source§fn clone(&self) -> PythonNumberValue
fn clone(&self) -> PythonNumberValue
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 PythonNumberValue
impl Debug for PythonNumberValue
Source§impl PartialEq for PythonNumberValue
impl PartialEq for PythonNumberValue
Source§fn eq(&self, other: &PythonNumberValue) -> bool
fn eq(&self, other: &PythonNumberValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PythonNumberValue
Auto Trait Implementations§
impl Freeze for PythonNumberValue
impl RefUnwindSafe for PythonNumberValue
impl Send for PythonNumberValue
impl Sync for PythonNumberValue
impl Unpin for PythonNumberValue
impl UnsafeUnpin for PythonNumberValue
impl UnwindSafe for PythonNumberValue
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