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 duplicate 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