Skip to main content

LZ4_stream_t

Struct LZ4_stream_t 

Source
pub struct LZ4_stream_t { /* private fields */ }
Expand description

LZ4_stream_t: the state used by the LZ4 streaming and external state compression functions.

The contents are opaque, and this only matches the size and alignment of the C union LZ4_stream_u, which is sized by LZ4_STREAM_MINSIZE and contains pointers and 32-bit integers. It must be initialized with LZ4_initStream before being used, which fails if the size or alignment does not satisfy the linked LZ4 library.

This is intentionally neither Copy nor Clone as it is large and must not be implicitly copied.

Auto Trait Implementations§

§

impl Freeze for LZ4_stream_t

§

impl RefUnwindSafe for LZ4_stream_t

§

impl Send for LZ4_stream_t

§

impl Sync for LZ4_stream_t

§

impl Unpin for LZ4_stream_t

§

impl UnsafeUnpin for LZ4_stream_t

§

impl UnwindSafe for LZ4_stream_t

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.