pub enum CompressionAlgorithm {
Deflate,
}
Available on crate features
ext_*
and ext_compress
only.Variants§
Deflate
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for CompressionAlgorithm
impl<'arbitrary> Arbitrary<'arbitrary> for CompressionAlgorithm
source§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<CompressionAlgorithm, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<CompressionAlgorithm, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<CompressionAlgorithm, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<CompressionAlgorithm, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<str> for CompressionAlgorithm
impl AsRef<str> for CompressionAlgorithm
source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
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 CompressionAlgorithm
impl Debug for CompressionAlgorithm
source§impl<'de> Deserialize<'de> for CompressionAlgorithm
impl<'de> Deserialize<'de> for CompressionAlgorithm
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompressionAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompressionAlgorithm, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for CompressionAlgorithm
impl Hash for CompressionAlgorithm
source§impl IntoBoundedStatic for CompressionAlgorithm
impl IntoBoundedStatic for CompressionAlgorithm
§type Static = CompressionAlgorithm
type Static = CompressionAlgorithm
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> <CompressionAlgorithm as IntoBoundedStatic>::Static
fn into_static(self) -> <CompressionAlgorithm as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl PartialEq<CompressionAlgorithm> for CompressionAlgorithm
impl PartialEq<CompressionAlgorithm> for CompressionAlgorithm
source§fn eq(&self, other: &CompressionAlgorithm) -> bool
fn eq(&self, other: &CompressionAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CompressionAlgorithm
impl Serialize for CompressionAlgorithm
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToBoundedStatic for CompressionAlgorithm
impl ToBoundedStatic for CompressionAlgorithm
§type Static = CompressionAlgorithm
type Static = CompressionAlgorithm
The target type is bounded by the
'static
lifetime.source§fn to_static(&self) -> <CompressionAlgorithm as ToBoundedStatic>::Static
fn to_static(&self) -> <CompressionAlgorithm as ToBoundedStatic>::Static
Convert an
&T
to an owned T
such that T: 'static
.source§impl<'a> TryFrom<&'a [u8]> for CompressionAlgorithm
impl<'a> TryFrom<&'a [u8]> for CompressionAlgorithm
§type Error = CompressionAlgorithmError
type Error = CompressionAlgorithmError
The type returned in the event of a conversion error.
source§fn try_from(
value: &[u8]
) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<&'a [u8]>>::Error>
fn try_from( value: &[u8] ) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<&'a [u8]>>::Error>
Performs the conversion.
source§impl<'a> TryFrom<&'a str> for CompressionAlgorithm
impl<'a> TryFrom<&'a str> for CompressionAlgorithm
§type Error = CompressionAlgorithmError
type Error = CompressionAlgorithmError
The type returned in the event of a conversion error.
source§fn try_from(
value: &str
) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<&'a str>>::Error>
fn try_from( value: &str ) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<&'a str>>::Error>
Performs the conversion.
source§impl<'a> TryFrom<Atom<'a>> for CompressionAlgorithm
impl<'a> TryFrom<Atom<'a>> for CompressionAlgorithm
§type Error = CompressionAlgorithmError
type Error = CompressionAlgorithmError
The type returned in the event of a conversion error.
source§fn try_from(
atom: Atom<'a>
) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<Atom<'a>>>::Error>
fn try_from( atom: Atom<'a> ) -> Result<CompressionAlgorithm, <CompressionAlgorithm as TryFrom<Atom<'a>>>::Error>
Performs the conversion.
impl Eq for CompressionAlgorithm
impl StructuralEq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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