[][src]Struct qt_core::q_resource::Compression

#[repr(transparent)]pub struct Compression(_);

This enum is used by compressionAlgorithm() to indicate which algorithm the RCC tool used to compress the payload.

C++ enum: QResource::Compression.

C++ documentation:

This enum is used by compressionAlgorithm() to indicate which algorithm the RCC tool used to compress the payload.

This enum was introduced or modified in Qt 5.13.

See also compressionAlgorithm() and isCompressed().

Methods

impl Compression[src]

pub fn to_int(&self) -> c_int[src]

impl Compression[src]

pub const NoCompression: Compression[src]

Contents are not compressed (isCompressed() is false). (C++ enum variant: NoCompression = 0)

pub const ZlibCompression: Compression[src]

Contents are compressed using https://zlib.net and can be decompressed using the qUncompress() function. (C++ enum variant: ZlibCompression = 1)

pub const ZstdCompression: Compression[src]

Contents are compressed using https://zstd.net. To decompress, use the ZSTD_decompress function from the zstd library. (C++ enum variant: ZstdCompression = 2)

Trait Implementations

impl Clone for Compression[src]

impl Copy for Compression[src]

impl Debug for Compression[src]

impl Eq for Compression[src]

impl From<Compression> for c_int[src]

impl From<i32> for Compression[src]

impl PartialEq<Compression> for Compression[src]

impl StructuralEq for Compression[src]

impl StructuralPartialEq for Compression[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.