pub enum ReadBy {
Boost,
Python,
}Expand description
Which of UnityPy’s two readers built a value: read_typetree picks
UnityPyBoost’s for an object of byte_size > 0 and the pure-Python one
for byte_size == 0 (helpers/TypeTreeHelper.py:146-153). Each reads
some trees its own way (CANONICAL_DUMP.md section 7), and
crate::walk::WriteRules::MirrorReader writes a value as the reader
that built it reads.
Variants§
Boost
UnityPyBoost’s reader (crate::walk::boost), and a value a caller
builds (ValueBuilder::finish).
Python
The pure-Python reader (crate::walk::python).
Trait Implementations§
impl Copy for ReadBy
impl Eq for ReadBy
impl StructuralPartialEq for ReadBy
Auto Trait Implementations§
impl Forget for ReadBy
impl Freeze for ReadBy
impl Move for ReadBy
impl RefUnwindSafe for ReadBy
impl Send for ReadBy
impl Sync for ReadBy
impl Unpin for ReadBy
impl UnsafeUnpin for ReadBy
impl UnwindSafe for ReadBy
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