Trait syn_helpers::Field[][src]

pub trait Field {
    fn get_reference(&mut self) -> Expr;
fn get_other_reference(&mut self) -> Expr;
fn get_pattern(&self) -> TokenStream;
fn get_other_pattern(&self) -> TokenStream;
fn get_attributes(&self) -> &Vec<Attribute>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
; }
Expand description

A Field is declaration of some data under a object

Required methods

Get a expression which refers to this field. Note that reference takes the form _ + index of field, this is to prevent possible clashes with parameter names

Same as Field::get_reference but a alternate reference for pair building

Get a pattern for reading this field

For pair building

Implementors