#[repr(u8)]pub enum Compression {
None = 0,
Zstd = 1,
}Expand description
A compression format or none if uncompressed.
Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<str> for Compression
impl AsRef<str> for Compression
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
Returns a duplicate 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 Compression
impl Debug for Compression
Source§impl<'de> Deserialize<'de> for Compression
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Compression
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Compression
impl Display for Compression
Source§impl From<Compression> for u8
impl From<Compression> for u8
Source§fn from(enum_value: Compression) -> Self
fn from(enum_value: Compression) -> Self
Converts to this type from the input type.
Source§impl FromStr for Compression
impl FromStr for Compression
Source§impl Hash for Compression
impl Hash for Compression
Source§impl IntoEnumIterator for Compression
impl IntoEnumIterator for Compression
type Iterator = CompressionIter
fn iter() -> CompressionIter ⓘ
Source§impl<'py> IntoPyObject<'py> for Compression
impl<'py> IntoPyObject<'py> for Compression
Source§type Target = Compression
type Target = Compression
The Python output type
Source§type Output = Bound<'py, <Compression as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <Compression as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Performs the conversion.
Source§impl Ord for Compression
impl Ord for Compression
Source§fn cmp(&self, other: &Compression) -> Ordering
fn cmp(&self, other: &Compression) -> 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 for Compression
impl PartialEq for Compression
Source§impl PartialOrd for Compression
impl PartialOrd for Compression
Source§impl PyClass for Compression
impl PyClass for Compression
Source§impl PyClassImpl for Compression
impl PyClassImpl for Compression
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)]
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
#[pyclass(immutable_type)]
Source§const RAW_DOC: &'static CStr = /// A compression format or none if uncompressed.
const RAW_DOC: &'static CStr = /// A compression format or none if uncompressed.
Docstring for the class provided on the struct or enum. Read more
Source§const DOC: &'static CStr
const DOC: &'static CStr
Fully rendered class doc, including the
text_signature if a constructor is defined. Read moreSource§type ThreadChecker = SendablePyClass<Compression>
type ThreadChecker = SendablePyClass<Compression>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§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 PyClassNewTextSignature for Compression
Available on crate feature python only.
impl PyClassNewTextSignature for Compression
Available on crate feature
python only.const TEXT_SIGNATURE: &'static str = "(value)"
Source§impl PyClass__eq__SlotFragment<Compression> for PyClassImplCollector<Compression>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<Compression> for PyClassImplCollector<Compression>
Available on crate feature
python only.Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder Compression
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder Compression
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut Compression
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut Compression
Source§impl PyMethods<Compression> for PyClassImplCollector<Compression>
Available on crate feature python only.
impl PyMethods<Compression> for PyClassImplCollector<Compression>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Compression
impl PyTypeInfo for Compression
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<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
Source§impl Serialize for Compression
Available on crate feature serde only.
impl Serialize for Compression
Available on crate feature
serde only.Source§impl TryFrom<u8> for Compression
impl TryFrom<u8> for Compression
Source§type Error = TryFromPrimitiveError<Compression>
type Error = TryFromPrimitiveError<Compression>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for Compression
impl TryFromPrimitive for Compression
const NAME: &'static str = "Compression"
type Primitive = u8
type Error = TryFromPrimitiveError<Compression>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Compression
impl Eq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
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<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.