Struct bones_schema::ptr::StructRefMutAccess
source · pub struct StructRefMutAccess<'a>(pub SchemaRefMut<'a>);
Expand description
Helper for accessing the inner data of a schema ref at runtime.
Tuple Fields§
§0: SchemaRefMut<'a>
Implementations§
source§impl<'a> StructRefMutAccess<'a>
impl<'a> StructRefMutAccess<'a>
sourcepub fn info(&self) -> &'static StructSchemaInfo
pub fn info(&self) -> &'static StructSchemaInfo
Get the StructSchemaInfo
for this struct.
sourcepub fn into_field<'i, I: Into<FieldIdx<'i>>>(
self,
field_idx: I,
) -> Result<SchemaRefMutAccess<'a>, Self>
pub fn into_field<'i, I: Into<FieldIdx<'i>>>( self, field_idx: I, ) -> Result<SchemaRefMutAccess<'a>, Self>
Access a field, if it exists.
sourcepub fn fields(&mut self) -> StructRefMutFieldIter<'_> ⓘ
pub fn fields(&mut self) -> StructRefMutFieldIter<'_> ⓘ
Iterate over fields in the struct.
sourcepub fn into_fields(self) -> StructRefMutFieldIter<'a> ⓘ
pub fn into_fields(self) -> StructRefMutFieldIter<'a> ⓘ
Consume to create an iterator over fields in the struct.
Auto Trait Implementations§
impl<'a> Freeze for StructRefMutAccess<'a>
impl<'a> !RefUnwindSafe for StructRefMutAccess<'a>
impl<'a> !Send for StructRefMutAccess<'a>
impl<'a> !Sync for StructRefMutAccess<'a>
impl<'a> Unpin for StructRefMutAccess<'a>
impl<'a> !UnwindSafe for StructRefMutAccess<'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