pub enum FrameMetaError {
Missing(&'static str),
NotANumber {
name: &'static str,
value: String,
},
UnknownEncoding(String),
UnknownKind(String),
OutOfBounds {
x: u32,
y: u32,
w: u32,
h: u32,
screen_w: u32,
screen_h: u32,
},
IndexOutOfRange {
index: u16,
count: u16,
},
}Expand description
A frame header was missing or unparseable.
Variants§
Missing(&'static str)
NotANumber
UnknownEncoding(String)
UnknownKind(String)
OutOfBounds
IndexOutOfRange
Trait Implementations§
Source§impl Clone for FrameMetaError
impl Clone for FrameMetaError
Source§fn clone(&self) -> FrameMetaError
fn clone(&self) -> FrameMetaError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameMetaError
impl Debug for FrameMetaError
Source§impl Display for FrameMetaError
impl Display for FrameMetaError
impl Eq for FrameMetaError
Source§impl Error for FrameMetaError
impl Error for FrameMetaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FrameMetaError
impl PartialEq for FrameMetaError
impl StructuralPartialEq for FrameMetaError
Auto Trait Implementations§
impl Freeze for FrameMetaError
impl RefUnwindSafe for FrameMetaError
impl Send for FrameMetaError
impl Sync for FrameMetaError
impl Unpin for FrameMetaError
impl UnsafeUnpin for FrameMetaError
impl UnwindSafe for FrameMetaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.