#[non_exhaustive]pub enum NotFound {
Cab(RawStr),
Resource(RawStr),
Source(u32),
}Expand description
What was not found.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cab(RawStr)
No CAB or file of that name, loaded or loadable: what a
crate::env::CabResolver::find_file returns where UnityPy’s
find_file walk raises FileNotFoundError.
Resource(RawStr)
No resource under any of UnityPy’s candidate names (ResourceReader.py:10-33).
Source(u32)
A source the environment has no slot for.
Trait Implementations§
impl Eq for NotFound
Source§impl Error for NotFound
impl Error for NotFound
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()
impl StructuralPartialEq for NotFound
Auto Trait Implementations§
impl !Freeze for NotFound
impl !RefUnwindSafe for NotFound
impl !UnwindSafe for NotFound
impl Forget for NotFound
impl Move for NotFound
impl Send for NotFound
impl Sync for NotFound
impl Unpin for NotFound
impl UnsafeUnpin for NotFound
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