Type Definition mp4parse::Result

source ·
pub type Result<T, E = Error> = Result<T, E>;
Expand description

Result shorthand using our Error enum.

Trait Implementations§

source§

impl<T> From<Status> for Result<T>

source§

fn from(parse_status: Status) -> Self

A convenience method to enable shortcuts like

Status::MissingAvifOrAvisBrand.into();

instead of

Err(Error::from(Status::MissingAvifOrAvisBrand));

Note that Status::Ok can’t be supported this way and will panic.