Struct macrohelper::bodykind::field::Fields
[−]
[src]
pub struct Fields(pub Vec<Field>);
A collect of individual field
Methods
impl Fields
[src]
fn len(&self) -> usize
Get number of args
fn get_id(&self, x: usize) -> String
Get id of an argument based on a position
This returns the name of an arg. If the ID doesn't exist (which means we're working with a tuple)
fn get_ty<'a>(&'a self, x: usize) -> &'a Ty
Get Type of an argument
Return's the Type of an arg.
Trait Implementations
impl Clone for Fields
[src]
fn clone(&self) -> Fields
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more