pub struct BoneOverrideSet { /* private fields */ }Expand description
A whole .bone file: the skeleton edits one customization choice needs.
On disk this is two parallel chunks — BIDA holds the bone ids and BOMT the matrices — but their lengths match in every corpus file, so they are paired here and split again on write.
Implementations§
Source§impl BoneOverrideSet
impl BoneOverrideSet
pub fn set_version(&mut self, value: u32)
Sourcepub fn overrides_len(&self) -> usize
pub fn overrides_len(&self) -> usize
Ascending by @ref BoneOverride::boneIndex, which is the order the files store and what lets the client binary-search a bone.
Sourcepub fn overrides(&self, index: usize) -> Option<Ref<'_, BoneOverride>>
pub fn overrides(&self, index: usize) -> Option<Ref<'_, BoneOverride>>
Borrows element index in place. None when out of range.
pub fn overrides_mut( &mut self, index: usize, ) -> Option<RefMut<'_, BoneOverride>>
Sourcepub fn overrides_iter(
&self,
) -> impl ExactSizeIterator<Item = Ref<'_, BoneOverride>>
pub fn overrides_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, BoneOverride>>
Iterate the elements, borrowing each in turn.
pub fn resize_overrides(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for BoneOverrideSet
impl Debug for BoneOverrideSet
Source§impl Default for BoneOverrideSet
impl Default for BoneOverrideSet
Source§impl Drop for BoneOverrideSet
impl Drop for BoneOverrideSet
impl Send for BoneOverrideSet
Auto Trait Implementations§
impl !Sync for BoneOverrideSet
impl Freeze for BoneOverrideSet
impl RefUnwindSafe for BoneOverrideSet
impl Unpin for BoneOverrideSet
impl UnsafeUnpin for BoneOverrideSet
impl UnwindSafe for BoneOverrideSet
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