pub struct Fields { /* private fields */ }Implementations§
Source§impl Fields
impl Fields
pub fn new() -> FieldsBuilder
pub fn layout(&self) -> &Layout
pub fn len(&self) -> usize
pub fn iter(&self) -> Iter<'_, Field> ⓘ
pub fn has(&self, name: &FieldName) -> bool
pub fn get(&self, name: &FieldName) -> Option<&Field>
pub fn get_mut(&mut self, name: &FieldName) -> Option<&mut Field>
Trait Implementations§
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl !RefUnwindSafe for Fields
impl !Send for Fields
impl !Sync for Fields
impl !UnwindSafe for Fields
impl Freeze for Fields
impl Unpin for Fields
impl UnsafeUnpin 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