pub enum PythonValue {
None,
Bool(bool),
Int(i128),
Float(f64),
String(String),
Managed(ManagedHandle),
Function(PythonFunction),
}Expand description
Values in the declared Python scalar/container core.
Variants§
None
Python None.
Bool(bool)
Boolean.
Int(i128)
Arbitrary core integer spelling, composed through installed number policy.
Float(f64)
Finite float.
String(String)
Unicode string.
Managed(ManagedHandle)
Mutable/cyclic arena identity.
Function(PythonFunction)
Direct Python function.
Trait Implementations§
Source§impl Clone for PythonValue
impl Clone for PythonValue
Source§fn clone(&self) -> PythonValue
fn clone(&self) -> PythonValue
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 PythonValue
impl Debug for PythonValue
Source§impl PartialEq for PythonValue
impl PartialEq for PythonValue
impl StructuralPartialEq for PythonValue
Auto Trait Implementations§
impl Freeze for PythonValue
impl RefUnwindSafe for PythonValue
impl Send for PythonValue
impl Sync for PythonValue
impl Unpin for PythonValue
impl UnsafeUnpin for PythonValue
impl UnwindSafe for PythonValue
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