pub enum PythonObjectValue {
None,
Int(i64),
String(String),
Object(u64),
Function(u64),
BoundMethod {
function: u64,
receiver: u64,
},
}Expand description
Value stored by the checked object model.
Variants§
None
Python None.
Int(i64)
A bounded integer specimen value.
String(String)
Text.
Object(u64)
An object identity.
Function(u64)
A function identity.
BoundMethod
A receiver-bound function.
Trait Implementations§
Source§impl Clone for PythonObjectValue
impl Clone for PythonObjectValue
Source§fn clone(&self) -> PythonObjectValue
fn clone(&self) -> PythonObjectValue
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 PythonObjectValue
impl Debug for PythonObjectValue
Source§impl Default for PythonObjectValue
impl Default for PythonObjectValue
Source§fn default() -> PythonObjectValue
fn default() -> PythonObjectValue
Returns the “default value” for a type. Read more
impl Eq for PythonObjectValue
Source§impl PartialEq for PythonObjectValue
impl PartialEq for PythonObjectValue
impl StructuralPartialEq for PythonObjectValue
Auto Trait Implementations§
impl Freeze for PythonObjectValue
impl RefUnwindSafe for PythonObjectValue
impl Send for PythonObjectValue
impl Sync for PythonObjectValue
impl Unpin for PythonObjectValue
impl UnsafeUnpin for PythonObjectValue
impl UnwindSafe for PythonObjectValue
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.