pub struct PyHttpVersion(_);
Expand description
Python compabible HTTP Version.
Trait Implementations
sourceimpl Clone for PyHttpVersion
impl Clone for PyHttpVersion
sourcefn clone(&self) -> PyHttpVersion
fn clone(&self) -> PyHttpVersion
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Hash for PyHttpVersion
impl Hash for PyHttpVersion
sourceimpl IntoPy<Py<PyAny>> for PyHttpVersion
impl IntoPy<Py<PyAny>> for PyHttpVersion
sourceimpl Ord for PyHttpVersion
impl Ord for PyHttpVersion
sourcefn cmp(&self, other: &PyHttpVersion) -> Ordering
fn cmp(&self, other: &PyHttpVersion) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PyHttpVersion> for PyHttpVersion
impl PartialEq<PyHttpVersion> for PyHttpVersion
sourcefn eq(&self, other: &PyHttpVersion) -> bool
fn eq(&self, other: &PyHttpVersion) -> bool
sourceimpl PartialOrd<PyHttpVersion> for PyHttpVersion
impl PartialOrd<PyHttpVersion> for PyHttpVersion
sourcefn partial_cmp(&self, other: &PyHttpVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &PyHttpVersion) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PyClass for PyHttpVersion
impl PyClass for PyHttpVersion
sourceimpl PyClassImpl for PyHttpVersion
impl PyClassImpl for PyHttpVersion
sourceconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
sourceconst IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
type Layout = PyCell<PyHttpVersion>
type Layout = PyCell<PyHttpVersion>
Layout
type ThreadChecker = ThreadCheckerStub<PyHttpVersion>
type ThreadChecker = ThreadCheckerStub<PyHttpVersion>
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 Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has
#[pyclass(dict)]
or not.type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has
#[pyclass(weakref)]
or not.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
. Read morefn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyHttpVersion
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyHttpVersion
sourceimpl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyHttpVersion
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyHttpVersion
sourceimpl PyMethods<PyHttpVersion> for PyClassImplCollector<PyHttpVersion>
impl PyMethods<PyHttpVersion> for PyClassImplCollector<PyHttpVersion>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for PyHttpVersion
impl PyTypeInfo for PyHttpVersion
type AsRefTarget = PyCell<PyHttpVersion>
type AsRefTarget = PyCell<PyHttpVersion>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
sourcefn 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.sourcefn 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 Copy for PyHttpVersion
impl Eq for PyHttpVersion
impl StructuralEq for PyHttpVersion
impl StructuralPartialEq for PyHttpVersion
Auto Trait Implementations
impl RefUnwindSafe for PyHttpVersion
impl Send for PyHttpVersion
impl Sync for PyHttpVersion
impl Unpin for PyHttpVersion
impl UnwindSafe for PyHttpVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.