pub struct StructRefAccess<'a>(/* private fields */);Expand description
Helper for accessing the inner data of a schema ref at runtime.
Implementations§
Source§impl<'a> StructRefAccess<'a>
impl<'a> StructRefAccess<'a>
Sourcepub fn info(&self) -> &'static StructSchemaInfo
pub fn info(&self) -> &'static StructSchemaInfo
Get the StructSchemaInfo for this struct.
Sourcepub fn fields(&self) -> StructRefFieldIter<'_> ⓘ
pub fn fields(&self) -> StructRefFieldIter<'_> ⓘ
Interate over the fields on the struct.
Sourcepub fn field<'i, I>(self, field_idx: I) -> Option<SchemaRefAccess<'a>>
pub fn field<'i, I>(self, field_idx: I) -> Option<SchemaRefAccess<'a>>
Access a field, if it exists.
Sourcepub fn as_schema_ref(&self) -> SchemaRef<'a>
pub fn as_schema_ref(&self) -> SchemaRef<'a>
Convert to a SchemaRef.
Trait Implementations§
Source§impl<'a> Clone for StructRefAccess<'a>
impl<'a> Clone for StructRefAccess<'a>
Source§fn clone(&self) -> StructRefAccess<'a>
fn clone(&self) -> StructRefAccess<'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 moreimpl<'a> Copy for StructRefAccess<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructRefAccess<'a>
impl<'a> !RefUnwindSafe for StructRefAccess<'a>
impl<'a> !Send for StructRefAccess<'a>
impl<'a> !Sync for StructRefAccess<'a>
impl<'a> Unpin for StructRefAccess<'a>
impl<'a> !UnwindSafe for StructRefAccess<'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