Enum editpe::ResourceError
source · pub enum ResourceError {
InvalidTable(String),
InvalidData(Error),
InvalidIconResource(ImageError),
InvalidBytes(ReadError),
}
Expand description
Errors that can occur when modifying resource data.
Variants§
InvalidTable(String)
InvalidData(Error)
InvalidIconResource(ImageError)
Available on crate feature
image
only.InvalidBytes(ReadError)
Trait Implementations§
source§impl Debug for ResourceError
impl Debug for ResourceError
source§impl Display for ResourceError
impl Display for ResourceError
source§impl Error for ResourceError
impl Error for ResourceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<Error> for ResourceError
impl From<Error> for ResourceError
source§impl From<ImageError> for ResourceError
impl From<ImageError> for ResourceError
source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl !UnwindSafe for ResourceError
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