pub struct TypeTreeParser;Expand description
TypeTree parser
This struct handles the parsing of TypeTree structures from binary data, supporting different Unity versions and formats.
Implementations§
Source§impl TypeTreeParser
impl TypeTreeParser
Sourcepub fn from_reader(
reader: &mut BinaryReader<'_>,
version: u32,
) -> Result<TypeTree, BinaryError>
pub fn from_reader( reader: &mut BinaryReader<'_>, version: u32, ) -> Result<TypeTree, BinaryError>
Parse TypeTree from binary data
Sourcepub fn from_reader_blob(
reader: &mut BinaryReader<'_>,
version: u32,
) -> Result<TypeTree, BinaryError>
pub fn from_reader_blob( reader: &mut BinaryReader<'_>, version: u32, ) -> Result<TypeTree, BinaryError>
Parse TypeTree from binary data using blob format (Unity version >= 12 or == 10)
Sourcepub fn get_parsing_stats(tree: &TypeTree) -> ParsingStats
pub fn get_parsing_stats(tree: &TypeTree) -> ParsingStats
Get parsing statistics
Auto Trait Implementations§
impl Freeze for TypeTreeParser
impl RefUnwindSafe for TypeTreeParser
impl Send for TypeTreeParser
impl Sync for TypeTreeParser
impl Unpin for TypeTreeParser
impl UnwindSafe for TypeTreeParser
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more