Enum PythonNumberValue
pub enum PythonNumberValue {
Bool(bool),
Int(String),
Float(f64),
Complex {
real: f64,
imag: f64,
},
}Expand description
Primitive Python number value metadata.
Variants§
Implementations§
§impl PythonNumberValue
impl PythonNumberValue
Trait Implementations§
§impl Clone for PythonNumberValue
impl Clone for PythonNumberValue
§fn clone(&self) -> PythonNumberValue
fn clone(&self) -> PythonNumberValue
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 more§impl Debug for PythonNumberValue
impl Debug for PythonNumberValue
§impl PartialEq for PythonNumberValue
impl PartialEq for PythonNumberValue
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