Skip to main content

FieldKey

Struct FieldKey 

Source
pub struct FieldKey(/* private fields */);
Expand description

Wraps an AAFieldKey value.

Implementations§

Source§

impl FieldKey

Source

pub const ACL: Self

Wraps the ACL AppleArchive field key.

Source

pub const BTM: Self

Wraps the BTM AppleArchive field key.

Source

pub const CKS: Self

Wraps the CKS AppleArchive field key.

Source

pub const CLC: Self

Wraps the CLC AppleArchive field key.

Source

pub const CTM: Self

Wraps the CTM AppleArchive field key.

Source

pub const DAT: Self

Wraps the DAT AppleArchive field key.

Source

pub const DEV: Self

Wraps the DEV AppleArchive field key.

Source

pub const DE2: Self

Wraps the DE2 AppleArchive field key.

Source

pub const DUZ: Self

Wraps the DUZ AppleArchive field key.

Source

pub const FLG: Self

Wraps the FLG AppleArchive field key.

Source

pub const GID: Self

Wraps the GID AppleArchive field key.

Source

pub const GIN: Self

Wraps the GIN AppleArchive field key.

Source

pub const HLC: Self

Wraps the HLC AppleArchive field key.

Source

pub const IDX: Self

Wraps the IDX AppleArchive field key.

Source

pub const IDZ: Self

Wraps the IDZ AppleArchive field key.

Source

pub const INO: Self

Wraps the INO AppleArchive field key.

Source

pub const LNK: Self

Wraps the LNK AppleArchive field key.

Source

pub const MOD: Self

Wraps the MOD AppleArchive field key.

Source

pub const MTM: Self

Wraps the MTM AppleArchive field key.

Source

pub const NLK: Self

Wraps the NLK AppleArchive field key.

Source

pub const PAT: Self

Wraps the PAT AppleArchive field key.

Source

pub const SH1: Self

Wraps the SH1 AppleArchive field key.

Source

pub const SH2: Self

Wraps the SH2 AppleArchive field key.

Source

pub const SH3: Self

Wraps the SH3 AppleArchive field key.

Source

pub const SH5: Self

Wraps the SH5 AppleArchive field key.

Source

pub const SIZ: Self

Wraps the SIZ AppleArchive field key.

Source

pub const SLC: Self

Wraps the SLC AppleArchive field key.

Source

pub const TYP: Self

Wraps the TYP AppleArchive field key.

Source

pub const UID: Self

Wraps the UID AppleArchive field key.

Source

pub const UIN: Self

Wraps the UIN AppleArchive field key.

Source

pub const XAT: Self

Wraps the XAT AppleArchive field key.

Source

pub const YAF: Self

Wraps the YAF AppleArchive field key.

Source

pub const fn from_bytes(bytes: [u8; 3]) -> Self

Wraps three-byte AAFieldKey construction.

Source

pub fn parse(value: &str) -> Result<Self>

Wraps string parsing for AAFieldKey values.

Source

pub const fn raw(self) -> u32

Wraps raw AAFieldKey values.

Source

pub const fn as_bytes(self) -> [u8; 3]

Wraps three-byte AAFieldKey values.

Source

pub fn as_string(self) -> String

Wraps string conversion for AAFieldKey values.

Trait Implementations§

Source§

impl Clone for FieldKey

Source§

fn clone(&self) -> FieldKey

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FieldKey

Source§

impl Debug for FieldKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FieldKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FieldKey

Source§

impl FromStr for FieldKey

Source§

type Err = CompressionError

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for FieldKey

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for FieldKey

Source§

fn cmp(&self, other: &FieldKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for FieldKey

Source§

fn eq(&self, other: &FieldKey) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for FieldKey

Source§

fn partial_cmp(&self, other: &FieldKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for FieldKey

Source§

impl TryFrom<&str> for FieldKey

Source§

type Error = CompressionError

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

fn try_from(value: &str) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.