Struct bones_asset::SchemaVecMutAccess
pub struct SchemaVecMutAccess<'a> { /* private fields */ }
Expand description
Mutable SchemaVec
access helper.
Implementations§
§impl<'a> SchemaVecMutAccess<'a>
impl<'a> SchemaVecMutAccess<'a>
pub fn as_mut(self) -> SchemaRefMut<'a>
pub fn as_mut(self) -> SchemaRefMut<'a>
Convert back to a SchemaRefMut
Methods from Deref<Target = &'a mut SchemaVec>§
pub fn try_push<T>(&mut self, item: T) -> Result<(), SchemaMismatchError>where
T: HasSchema,
pub fn try_push<T>(&mut self, item: T) -> Result<(), SchemaMismatchError>where T: HasSchema,
pub fn try_push_box(
&mut self,
item: SchemaBox
) -> Result<(), SchemaMismatchError>
pub fn try_push_box( &mut self, item: SchemaBox ) -> Result<(), SchemaMismatchError>
Push the item into the end of the vector.
pub fn try_pop<T>(&mut self) -> Result<Option<T>, SchemaMismatchError>where
T: HasSchema,
pub fn try_pop<T>(&mut self) -> Result<Option<T>, SchemaMismatchError>where T: HasSchema,
pub fn try_get_mut<T>(
&mut self,
idx: usize
) -> Result<Option<&mut T>, SchemaMismatchError>where
T: HasSchema,
pub fn try_get_mut<T>( &mut self, idx: usize ) -> Result<Option<&mut T>, SchemaMismatchError>where T: HasSchema,
pub fn get_ref_mut(&mut self, idx: usize) -> Option<SchemaRefMut<'_>>
pub fn get_ref_mut(&mut self, idx: usize) -> Option<SchemaRefMut<'_>>
Get an item with the given index.
pub fn iter(&self) -> SchemaVecIter<'_>
pub fn iter(&self) -> SchemaVecIter<'_>
Iterate over values in the vec
pub fn iter_mut(&mut self) -> SchemaVecIterMut<'_>
pub fn iter_mut(&mut self) -> SchemaVecIterMut<'_>
Iterate mutably over values in the vec
Trait Implementations§
§impl<'a> Deref for SchemaVecMutAccess<'a>
impl<'a> Deref for SchemaVecMutAccess<'a>
§impl<'a> DerefMut for SchemaVecMutAccess<'a>
impl<'a> DerefMut for SchemaVecMutAccess<'a>
§fn deref_mut(&mut self) -> &mut <SchemaVecMutAccess<'a> as Deref>::Target
fn deref_mut(&mut self) -> &mut <SchemaVecMutAccess<'a> as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SchemaVecMutAccess<'a>
impl<'a> !Send for SchemaVecMutAccess<'a>
impl<'a> !Sync for SchemaVecMutAccess<'a>
impl<'a> Unpin for SchemaVecMutAccess<'a>
impl<'a> !UnwindSafe for SchemaVecMutAccess<'a>
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