pub struct DynStructView<'a> { /* private fields */ }Expand description
View over a struct column.
Implementations§
Source§impl<'a> DynStructView<'a>
impl<'a> DynStructView<'a>
Sourcepub fn get(
&'a self,
index: usize,
) -> Result<Option<DynCellRef<'a>>, DynViewError>
pub fn get( &'a self, index: usize, ) -> Result<Option<DynCellRef<'a>>, DynViewError>
Retrieve the value of a struct field by index.
Sourcepub fn get_by_name(
&'a self,
name: &str,
) -> Option<Result<Option<DynCellRef<'a>>, DynViewError>>
pub fn get_by_name( &'a self, name: &str, ) -> Option<Result<Option<DynCellRef<'a>>, DynViewError>>
Retrieve a struct field by name.
Auto Trait Implementations§
impl<'a> Freeze for DynStructView<'a>
impl<'a> !RefUnwindSafe for DynStructView<'a>
impl<'a> Send for DynStructView<'a>
impl<'a> Sync for DynStructView<'a>
impl<'a> Unpin for DynStructView<'a>
impl<'a> !UnwindSafe for DynStructView<'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