pub struct TypeTreeSerializer<'a> { /* private fields */ }Expand description
TypeTree serializer
This struct provides methods for serializing and deserializing Unity objects using TypeTree structure information.
Implementations§
Source§impl<'a> TypeTreeSerializer<'a>
impl<'a> TypeTreeSerializer<'a>
Sourcepub fn parse_object(
&self,
reader: &mut BinaryReader<'_>,
) -> Result<IndexMap<String, UnityValue>>
pub fn parse_object( &self, reader: &mut BinaryReader<'_>, ) -> Result<IndexMap<String, UnityValue>>
Parse object data using the TypeTree structure
Sourcepub fn serialize_object(
&self,
data: &IndexMap<String, UnityValue>,
) -> Result<Vec<u8>>
pub fn serialize_object( &self, data: &IndexMap<String, UnityValue>, ) -> Result<Vec<u8>>
Serialize object data using the TypeTree structure
Sourcepub fn estimate_size(&self, data: &IndexMap<String, UnityValue>) -> usize
pub fn estimate_size(&self, data: &IndexMap<String, UnityValue>) -> usize
Estimate serialized size
Auto Trait Implementations§
impl<'a> Freeze for TypeTreeSerializer<'a>
impl<'a> RefUnwindSafe for TypeTreeSerializer<'a>
impl<'a> Send for TypeTreeSerializer<'a>
impl<'a> Sync for TypeTreeSerializer<'a>
impl<'a> Unpin for TypeTreeSerializer<'a>
impl<'a> UnwindSafe for TypeTreeSerializer<'a>
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