xz_buf

Struct xz_buf 

Source
#[repr(C)]
pub struct xz_buf { pub _in: *const u8, pub in_pos: size_t, pub in_size: size_t, pub out: *mut u8, pub out_pos: size_t, pub out_size: size_t, }
Expand description

Passing input and output buffers to XZ code

Fields§

§_in: *const u8

Beginning of the input buffer. This may be NULL if and only if in_pos is equal to in_size.

§in_pos: size_t

Current position in the input buffer. This must not exceed in_size.

§in_size: size_t

Size of the input buffer

§out: *mut u8

Beginning of the output buffer. This may be NULL if and only if out_pos is equal to out_size.

§out_pos: size_t

Current position in the output buffer. This must not exceed out_size.

§out_size: size_t

Size of the output buffer

Auto Trait Implementations§

§

impl Freeze for xz_buf

§

impl RefUnwindSafe for xz_buf

§

impl !Send for xz_buf

§

impl !Sync for xz_buf

§

impl Unpin for xz_buf

§

impl UnwindSafe for xz_buf

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.