Trait syn_helpers::FieldMut
source · pub trait FieldMut: Field {
fn get_reference_with_config(
&mut self,
used_for_trait: bool,
name_postfix: &'static str
) -> Expr;
fn get_reference(&mut self) -> Expr { ... }
}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 [Field::get_reference_with_config] to for different options