/// Iterate over the fields of the body.
Iterate over the fields of the body.
Iterate over the fields of the body .
pub fn fields(&self) -> impl Iterator<Item = &'_ (ast::Field, Option<T![,]>)> {
        match self {
            ItemVariantBody::UnitBody => IntoIterator::into_iter(&[]),
            ItemVariantBody::TupleBody(body) => body.iter(),
            ItemVariantBody::StructBody(body) => body.iter(),
        }
    }
pub fn fields ( & self ) -> impl Iterator < Item = & ' _ ( ast :: Field , Option < T ! [ ] > ) > { match self { ItemVariantBody :: UnitBody => IntoIterator :: into_iter ( & [ ] ) , ItemVariantBody :: TupleBody ( body ) => body . iter ( ) , ItemVariantBody :: StructBody ( body ) => body . iter ( ) , } }
Iterate over the fields of the body.
Iterate over the fields of the body .
&self