pub struct Fields { /* private fields */ }
Implementations§
source§impl Fields
impl Fields
pub fn new(fields: Vec<FieldInfo>) -> Fields
pub fn infos(&self) -> &[FieldInfo]
pub fn get<'a, 'b: 'a>( &'a self, indices: &[usize], metas: &'b MetadataObjs ) -> &'a FieldInfo
pub fn get_non_embedded(&self, index: usize) -> &FieldInfo
pub fn try_index_by_name(&self, name: &str) -> Option<usize>
pub fn index_by_name(&self, name: &str) -> usize
pub fn indices_by_name(&self, name: &str) -> Vec<usize>
pub fn identical(&self, other: &Self, metas: &MetadataObjs) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
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