Skip to main content

MacBinary

Struct MacBinary 

Source
pub struct MacBinary<R> { /* private fields */ }

Implementations§

Source§

impl<R> MacBinary<R>

Source

pub fn into_inner(self) -> R

Source

pub fn header(&self) -> Option<&Header>

Source

pub fn version(&self) -> Version

Source

pub fn creator(&self) -> FourCC

Source

pub fn type_code(&self) -> FourCC

Source§

impl<R: Read + Seek> MacBinary<R>

Source

pub fn try_new(value: R) -> Result<Self, Error>

Source

pub fn try_new_with_config(value: R, config: Config) -> Result<Self, Error>

Source

pub fn open_fork(&mut self, fork: Fork) -> Result<Reader<&mut R>, Error>

Source

pub fn data_fork_len(&mut self) -> Result<u64, Error>

Source

pub fn resource_fork_len(&mut self) -> Result<u64, Error>

Source

pub fn data_fork(&mut self) -> Result<Reader<&mut R>, Error>

Source

pub fn resource_fork(&mut self) -> Result<Reader<&mut R>, Error>

Source

pub fn into_fork(self, fork: Fork) -> Result<Reader<R>, Error>

Source

pub fn comment(&mut self) -> Result<String, Error>

Source

pub fn into_data_fork(self) -> Result<Reader<R>, Error>

Source

pub fn into_resource_fork(self) -> Result<Reader<R>, Error>

Source§

impl MacBinary<File>

Source

pub fn open(path: impl AsRef<Path>) -> Result<Self, Error>

Trait Implementations§

Source§

impl<R: Debug> Debug for MacBinary<R>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<R> Freeze for MacBinary<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for MacBinary<R>
where R: RefUnwindSafe,

§

impl<R> Send for MacBinary<R>
where R: Send,

§

impl<R> Sync for MacBinary<R>
where R: Sync,

§

impl<R> Unpin for MacBinary<R>
where R: Unpin,

§

impl<R> UnwindSafe for MacBinary<R>
where R: UnwindSafe,

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.