HQXConfig

Struct HQXConfig 

Source
pub struct HQXConfig<'a> {
    pub name: Option<CString>,
    pub file_type: Option<&'a [u8; 4]>,
    pub author: Option<&'a [u8; 4]>,
    pub flags: Option<&'a [u8; 2]>,
    pub data: Option<&'a [u8]>,
    pub resource: Option<&'a [u8]>,
}

Fields§

§name: Option<CString>§file_type: Option<&'a [u8; 4]>§author: Option<&'a [u8; 4]>§flags: Option<&'a [u8; 2]>§data: Option<&'a [u8]>§resource: Option<&'a [u8]>

Implementations§

Source§

impl<'a> HQXConfig<'a>

Source

pub fn hqx_len(&self) -> usize

Auto Trait Implementations§

§

impl<'a> Freeze for HQXConfig<'a>

§

impl<'a> RefUnwindSafe for HQXConfig<'a>

§

impl<'a> Send for HQXConfig<'a>

§

impl<'a> Sync for HQXConfig<'a>

§

impl<'a> Unpin for HQXConfig<'a>

§

impl<'a> UnwindSafe for HQXConfig<'a>

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.