#[non_exhaustive]pub enum NoTree {
UnknownClass,
NoEntry,
NoReleaseRoot,
NoVersion,
}Expand description
Why no tree answers a class: the exception UnityPy raises there, the
TPK’s (helpers/Tpk.py:42-55, :58-64, :472-481), which a binding
raises where the core reports no tree
(crate::walk::ParseError::NoTypeTree).
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.
UnknownClass
The TPK does not hold the class: KeyError.
NoEntry
No entry at or below the version, or the entry there marks the
class removed: ValueError “Could not find exact version”.
NoReleaseRoot
The entry picked has no release root: AssertionError.
NoVersion
The file has no version (below format 7: ObjectReader.version is
None), which the TPK compares with its first entry:
NotImplementedError “Unsupported comparison”.
Implementations§
Trait Implementations§
impl Copy for NoTree
impl Eq for NoTree
impl StructuralPartialEq for NoTree
Auto Trait Implementations§
impl Forget for NoTree
impl Freeze for NoTree
impl Move for NoTree
impl RefUnwindSafe for NoTree
impl Send for NoTree
impl Sync for NoTree
impl Unpin for NoTree
impl UnsafeUnpin for NoTree
impl UnwindSafe for NoTree
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