Enum datafusion_python::common::data_type::PythonType
source · pub enum PythonType {
Array,
Bool,
Bytes,
Datetime,
Float,
Int,
List,
None,
Object,
Str,
}
Expand description
Represents the possible Python types that can be mapped to the SQL types
Variants§
Trait Implementations§
source§impl Clone for PythonType
impl Clone for PythonType
source§fn clone(&self) -> PythonType
fn clone(&self) -> PythonType
Returns a copy 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 moresource§impl Debug for PythonType
impl Debug for PythonType
source§impl Hash for PythonType
impl Hash for PythonType
source§impl Ord for PythonType
impl Ord for PythonType
source§fn cmp(&self, other: &PythonType) -> Ordering
fn cmp(&self, other: &PythonType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PythonType> for PythonType
impl PartialEq<PythonType> for PythonType
source§fn eq(&self, other: &PythonType) -> bool
fn eq(&self, other: &PythonType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PythonType> for PythonType
impl PartialOrd<PythonType> for PythonType
source§fn partial_cmp(&self, other: &PythonType) -> Option<Ordering>
fn partial_cmp(&self, other: &PythonType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PyClassImpl for PythonType
impl PyClassImpl for PythonType
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type Layout = PyCell<PythonType>
type Layout = PyCell<PythonType>
Layout
§type ThreadChecker = ThreadCheckerStub<PythonType>
type ThreadChecker = ThreadCheckerStub<PythonType>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PythonType
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PythonType
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PythonType
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PythonType
source§impl PyTypeInfo for PythonType
impl PyTypeInfo for PythonType
§type AsRefTarget = PyCell<PythonType>
type AsRefTarget = PyCell<PythonType>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.impl Eq for PythonType
impl StructuralEq for PythonType
impl StructuralPartialEq for PythonType
Auto Trait Implementations§
impl RefUnwindSafe for PythonType
impl Send for PythonType
impl Sync for PythonType
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.