pub struct TypeSpec {
pub class_id: i32,
pub stripped: bool,
pub script_type_index: i16,
pub script_id: [u8; 16],
pub old_type_hash: [u8; 16],
pub nodes: Vec<NodeSpec>,
pub ref_names: Option<(Vec<u8>, Vec<u8>, Vec<u8>)>,
pub dependencies: Vec<i32>,
}Expand description
One type record.
Fields§
§class_id: i32class_id.
stripped: boolis_stripped_type (format 16 and up).
script_type_index: i16script_type_index (format 17 and up).
script_id: [u8; 16]script_id, written under UnityPy’s condition (plan section 3.7).
old_type_hash: [u8; 16]old_type_hash (13 and up).
nodes: Vec<NodeSpec>The tree, written when type trees are enabled.
ref_names: Option<(Vec<u8>, Vec<u8>, Vec<u8>)>Ref types at 21 and up: class, namespace, assembly.
dependencies: Vec<i32>Plain types at 21 and up: type_dependencies.
Trait Implementations§
impl Eq for TypeSpec
impl StructuralPartialEq for TypeSpec
Auto Trait Implementations§
impl Forget for TypeSpec
impl Freeze for TypeSpec
impl Move for TypeSpec
impl RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnsafeUnpin for TypeSpec
impl UnwindSafe for TypeSpec
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