pub struct Version { /* private fields */ }Expand description
The version a handler reads (module docs).
Implementations§
Source§impl Version
impl Version
Sourcepub fn of(version: &UnityVersion) -> Self
pub fn of(version: &UnityVersion) -> Self
The version of an object’s file, as UnityPy’s object_reader.version
is (the caller’s to pick: the handler is given one, as SpriteHelper
gives it, export/SpriteHelper.py:117).
Sourcepub const fn new(major: u16, minor: u16, build: u16, ty: u8, number: u8) -> Self
pub const fn new(major: u16, minor: u16, build: u16, ty: u8, number: u8) -> Self
A version from its parts, type UnityPy’s UnityVersionType value
(0 to 5, or 255; another is kept as the byte every read raises
for).
Sourcepub fn as_tuple(self) -> Result<[u16; 5], MeshError>
pub fn as_tuple(self) -> Result<[u16; 5], MeshError>
The tuple, or ValueError for its type byte.
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Forget for Version
impl Freeze for Version
impl Move for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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