Struct bones_schema::ptr::SchemaVecMutAccess
source · pub struct SchemaVecMutAccess<'a> { /* private fields */ }
Expand description
Mutable SchemaVec
access helper.
Implementations§
source§impl<'a> SchemaVecMutAccess<'a>
impl<'a> SchemaVecMutAccess<'a>
sourcepub 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>§
sourcepub 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.
sourcepub fn try_get_mut<T: HasSchema>(
&mut self,
idx: usize,
) -> Result<Option<&mut T>, SchemaMismatchError>
pub fn try_get_mut<T: HasSchema>( &mut self, idx: usize, ) -> Result<Option<&mut T>, SchemaMismatchError>
sourcepub 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.
sourcepub fn iter(&self) -> SchemaVecIter<'_> ⓘ
pub fn iter(&self) -> SchemaVecIter<'_> ⓘ
Iterate over values in the vec
sourcepub fn iter_mut(&mut self) -> SchemaVecIterMut<'_> ⓘ
pub fn iter_mut(&mut self) -> SchemaVecIterMut<'_> ⓘ
Iterate mutably over values in the vec
Trait Implementations§
source§impl<'a> Deref for SchemaVecMutAccess<'a>
impl<'a> Deref for SchemaVecMutAccess<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaVecMutAccess<'a>
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