Enum dbn::enums::Compression
source · #[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 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 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 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 PartialEq for Compression
impl PartialEq for Compression
source§fn eq(&self, other: &Compression) -> bool
fn eq(&self, other: &Compression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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)]
§type ThreadChecker = SendablePyClass<Compression>
type ThreadChecker = SendablePyClass<Compression>
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 PyClassNewTextSignature<Compression> for PyClassImplCollector<Compression>
Available on crate feature python
only.
impl PyClassNewTextSignature<Compression> for PyClassImplCollector<Compression>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Compression
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Compression
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Compression
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a 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
§type AsRefTarget = PyCell<Compression>
type AsRefTarget = PyCell<Compression>
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.source§impl TryFrom<u8> for Compression
impl TryFrom<u8> for Compression
§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
type Primitive = u8
type Error = TryFromPrimitiveError<Compression>
const NAME: &'static str = "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