pub struct Obj {
pub path_id: i64,
pub name: Vec<u8>,
pub body: Body,
}Expand description
One object.
Fields§
§path_id: i64Its path id.
name: Vec<u8>m_Name.
body: BodyIts fields.
Implementations§
Source§impl Obj
impl Obj
Sourcepub fn named(path_id: i64, name: &str, ptrs: &[(i32, i64)]) -> Self
pub fn named(path_id: i64, name: &str, ptrs: &[(i32, i64)]) -> Self
A named object (class 1) with pointers.
Sourcepub fn streamed(
path_id: i64,
name: &str,
path: &str,
offset: u64,
size: u32,
) -> Self
pub fn streamed( path_id: i64, name: &str, path: &str, offset: u64, size: u32, ) -> Self
A streamed texture (class 28) reading size bytes at offset of
path.
Sourcepub fn asset_bundle(path_id: i64, bundle: Bundle) -> Self
pub fn asset_bundle(path_id: i64, bundle: Bundle) -> Self
An AssetBundle (class 142).
Trait Implementations§
impl Eq for Obj
impl StructuralPartialEq for Obj
Auto Trait Implementations§
impl Forget for Obj
impl Freeze for Obj
impl Move for Obj
impl RefUnwindSafe for Obj
impl Send for Obj
impl Sync for Obj
impl Unpin for Obj
impl UnsafeUnpin for Obj
impl UnwindSafe for Obj
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