[−][src]Enum swf_parser::SwfParseError
Represents the possible parse errors when parsing an SWF file.
Fatal errors can only occur at the beginning of the parsing. Once the header
is parsed, the tags are always parsed successfully. Invalid tags produce
Raw
tags but don't prevent the parser from completing: the parser is
resilient to invalid (or unknown) tags.
Variants
Indicates an invalid SWF signature.
The SWF signature corresponds to the first 8 bytes of the movie. This error occurs either if there is not enough data to even parse the signature or if the compression method is invalid.
Indicates a failure to decompress the payload.
The payload represents all the data following the SWF signature.
If the SWF file uses a compressed payload (Deflate
or Lzma
), this
error is emitted when the decompression fails for any reason.
Indicates an invalid movie header.
The movie header corresponds to the first few bytes of the payload. This error occurs if there is not enough data to parse the header.
Trait Implementations
impl Clone for SwfParseError
[src]
fn clone(&self) -> SwfParseError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SwfParseError
[src]
impl Debug for SwfParseError
[src]
impl Eq for SwfParseError
[src]
impl Hash for SwfParseError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SwfParseError
[src]
fn cmp(&self, other: &SwfParseError) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SwfParseError> for SwfParseError
[src]
fn eq(&self, other: &SwfParseError) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SwfParseError> for SwfParseError
[src]
fn partial_cmp(&self, other: &SwfParseError) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SwfParseError
[src]
impl StructuralPartialEq for SwfParseError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SwfParseError
impl Send for SwfParseError
impl Sync for SwfParseError
impl Unpin for SwfParseError
impl UnwindSafe for SwfParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,