pub struct Fields { /* private fields */ }
Implementations§
source§impl Fields
impl Fields
pub fn new(fields: Vec<FieldInfo, Global>) -> Fields
pub fn infos(&self) -> &[FieldInfo]
pub fn get<'a, 'b>( &'a self, indices: &[usize], metas: &'b PiggyVec<MetadataKey, MetadataType> ) -> &'a FieldInfowhere 'b: 'a,
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, Global>
pub fn identical( &self, other: &Fields, metas: &PiggyVec<MetadataKey, MetadataType> ) -> 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