Struct bones_asset::SchemaVecAccess
pub struct SchemaVecAccess<'a> { /* private fields */ }
Expand description
Access helper for a SchemaVec
.
Implementations§
§impl<'a> SchemaVecAccess<'a>
impl<'a> SchemaVecAccess<'a>
pub fn into_schema_ref(self) -> SchemaRef<'a>
pub fn into_schema_ref(self) -> SchemaRef<'a>
Convert back to a SchemaRefMut
Methods from Deref<Target = &'a 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> Clone for SchemaVecAccess<'a>
impl<'a> Clone for SchemaVecAccess<'a>
§fn clone(&self) -> SchemaVecAccess<'a>
fn clone(&self) -> SchemaVecAccess<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<'a> Deref for SchemaVecAccess<'a>
impl<'a> Deref for SchemaVecAccess<'a>
§impl<'a> DerefMut for SchemaVecAccess<'a>
impl<'a> DerefMut for SchemaVecAccess<'a>
§fn deref_mut(&mut self) -> &mut <SchemaVecAccess<'a> as Deref>::Target
fn deref_mut(&mut self) -> &mut <SchemaVecAccess<'a> as Deref>::Target
Mutably dereferences the value.
impl<'a> Copy for SchemaVecAccess<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SchemaVecAccess<'a>
impl<'a> !Send for SchemaVecAccess<'a>
impl<'a> !Sync for SchemaVecAccess<'a>
impl<'a> Unpin for SchemaVecAccess<'a>
impl<'a> !UnwindSafe for SchemaVecAccess<'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