Struct bones_schema::ptr::SchemaVecAccess
source · pub struct SchemaVecAccess<'a> { /* private fields */ }
Expand description
Access helper for a SchemaVec
.
Implementations§
source§impl<'a> SchemaVecAccess<'a>
impl<'a> SchemaVecAccess<'a>
sourcepub 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>§
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> Clone for SchemaVecAccess<'a>
impl<'a> Clone for SchemaVecAccess<'a>
source§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 moresource§impl<'a> Deref for SchemaVecAccess<'a>
impl<'a> Deref for SchemaVecAccess<'a>
source§impl<'a> DerefMut for SchemaVecAccess<'a>
impl<'a> DerefMut for SchemaVecAccess<'a>
impl<'a> Copy for SchemaVecAccess<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaVecAccess<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)