pub struct SkinProfile { /* private fields */ }Implementations§
Source§impl SkinProfile
impl SkinProfile
Sourcepub fn vertices_mut(&mut self) -> &mut [u16]
pub fn vertices_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_vertices(&mut self, values: &[u16])
pub fn resize_vertices(&mut self, count: usize)
Sourcepub fn indices_mut(&mut self) -> &mut [u16]
pub fn indices_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_indices(&mut self, values: &[u16])
pub fn resize_indices(&mut self, count: usize)
pub fn submeshes_len(&self) -> usize
Sourcepub fn submeshes(&self, index: usize) -> Option<Ref<'_, SkinSection>>
pub fn submeshes(&self, index: usize) -> Option<Ref<'_, SkinSection>>
Borrows element index in place. None when out of range.
pub fn submeshes_mut(&mut self, index: usize) -> Option<RefMut<'_, SkinSection>>
Sourcepub fn submeshes_iter(
&self,
) -> impl ExactSizeIterator<Item = Ref<'_, SkinSection>>
pub fn submeshes_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, SkinSection>>
Iterate the elements, borrowing each in turn.
pub fn resize_submeshes(&mut self, count: usize)
pub fn batches_len(&self) -> usize
Sourcepub fn batches(&self, index: usize) -> Option<Ref<'_, Batch>>
pub fn batches(&self, index: usize) -> Option<Ref<'_, Batch>>
Borrows element index in place. None when out of range.
pub fn batches_mut(&mut self, index: usize) -> Option<RefMut<'_, Batch>>
Sourcepub fn batches_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Batch>>
pub fn batches_iter(&self) -> impl ExactSizeIterator<Item = Ref<'_, Batch>>
Iterate the elements, borrowing each in turn.
pub fn resize_batches(&mut self, count: usize)
pub fn lod_vertex_base(&self) -> u32
pub fn set_lod_vertex_base(&mut self, value: u32)
pub fn shadow_batches_len(&self) -> usize
Sourcepub fn shadow_batches(&self, index: usize) -> Option<Ref<'_, ShadowBatch>>
pub fn shadow_batches(&self, index: usize) -> Option<Ref<'_, ShadowBatch>>
Borrows element index in place. None when out of range.
pub fn shadow_batches_mut( &mut self, index: usize, ) -> Option<RefMut<'_, ShadowBatch>>
Sourcepub fn shadow_batches_iter(
&self,
) -> impl ExactSizeIterator<Item = Ref<'_, ShadowBatch>>
pub fn shadow_batches_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, ShadowBatch>>
Iterate the elements, borrowing each in turn.
pub fn resize_shadow_batches(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for SkinProfile
impl Debug for SkinProfile
Source§impl Default for SkinProfile
impl Default for SkinProfile
Source§impl Drop for SkinProfile
impl Drop for SkinProfile
impl Send for SkinProfile
Auto Trait Implementations§
impl !Sync for SkinProfile
impl Freeze for SkinProfile
impl RefUnwindSafe for SkinProfile
impl Unpin for SkinProfile
impl UnsafeUnpin for SkinProfile
impl UnwindSafe for SkinProfile
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