Struct macrohelper::bodykind::field::Fields [] [src]

pub struct Fields(pub Vec<Field>);

A collect of individual field

Methods

impl Fields
[src]

Get number of args

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)

Get Type of an argument

Return's the Type of an arg.

Trait Implementations

impl Clone for Fields
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Fields
[src]

Formats the value using the given formatter.

impl From<Vec<SynField>> for Fields
[src]

Bulk conversion of several fields at once

impl<'a> From<&'a Vec<SynField>> for Fields
[src]

Bulk conversion of several fields at once

impl Index<usize> for Fields
[src]

The returned type after indexing

The method for the indexing (container[index]) operation