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 Freeze for Fields
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