pub enum PythonType {
Int,
Float,
Str,
Bool,
List(Box<Type>),
Dict {
key: Box<Type>,
value: Box<Type>,
},
Tuple(Vec<Type>),
Set(Box<Type>),
None,
Any,
Class(String),
}Expand description
Python type
Variants§
Int
int
Float
float
Str
str
Bool
bool
List(Box<Type>)
list[T]
Dict
dict[K, V]
Tuple(Vec<Type>)
tuple[T1, T2, …]
Set(Box<Type>)
set[T]
None
None
Any
Any (dynamic)
Class(String)
Custom class
Trait Implementations§
Source§impl Clone for PythonType
impl Clone for PythonType
Source§impl Debug for PythonType
impl Debug for PythonType
Source§impl<'de> Deserialize<'de> for PythonType
impl<'de> Deserialize<'de> for PythonType
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 Display for PythonType
impl Display for PythonType
impl Eq for PythonType
Source§impl Hash for PythonType
impl Hash for PythonType
Source§impl PartialEq for PythonType
impl PartialEq for PythonType
Source§impl Serialize for PythonType
impl Serialize for PythonType
impl StructuralPartialEq for PythonType
Auto Trait Implementations§
impl Forget for PythonType
impl Freeze for PythonType
impl Move for PythonType
impl RefUnwindSafe for PythonType
impl Send for PythonType
impl Sync for PythonType
impl Unpin for PythonType
impl UnsafeUnpin for PythonType
impl UnwindSafe for PythonType
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