pub struct PhysicsUnknownChunk { /* private fields */ }Expand description
A .phys chunk this library does not know, kept verbatim so a parse/write cycle does not drop it.
Implementations§
Source§impl PhysicsUnknownChunk
impl PhysicsUnknownChunk
Sourcepub const fn tag_len() -> usize
pub const fn tag_len() -> usize
FourCC as written on disk — .phys stores chunk ids reversed, so a PHYS chunk reads as “SYHP”.
Number of elements — a fixed-size C++ array.
Sourcepub fn data_mut(&mut self) -> &mut [u8] ⓘ
pub fn data_mut(&mut self) -> &mut [u8] ⓘ
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_data(&mut self, values: &[u8])
pub fn resize_data(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for PhysicsUnknownChunk
impl Debug for PhysicsUnknownChunk
Source§impl Default for PhysicsUnknownChunk
impl Default for PhysicsUnknownChunk
Source§impl Drop for PhysicsUnknownChunk
impl Drop for PhysicsUnknownChunk
impl Send for PhysicsUnknownChunk
Auto Trait Implementations§
impl !Sync for PhysicsUnknownChunk
impl Freeze for PhysicsUnknownChunk
impl RefUnwindSafe for PhysicsUnknownChunk
impl Unpin for PhysicsUnknownChunk
impl UnsafeUnpin for PhysicsUnknownChunk
impl UnwindSafe for PhysicsUnknownChunk
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