Trait syn_helpers::FieldMut
source · pub trait FieldMut: Field {
// Required method
fn get_reference_with_config(
&mut self,
used_for_trait: bool,
name_postfix: &'static str
) -> Expr;
// Provided method
fn get_reference(&mut self) -> Expr { ... }
}
Expand description
Getting a reference to the field is recorded
Required Methods§
fn get_reference_with_config( &mut self, used_for_trait: bool, name_postfix: &'static str ) -> Expr
Provided Methods§
sourcefn get_reference(&mut self) -> Expr
fn get_reference(&mut self) -> Expr
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.
Use FieldMut::get_reference_with_config to for different options