Struct syn_helpers::Item
source · pub struct Item<'a> {
pub structure: &'a mut Structure,
pub self_type: TypeOfSelf,
}Fields§
§structure: &'a mut Structure§self_type: TypeOfSelfImplementations§
source§impl Item<'_>
impl Item<'_>
sourcepub fn map_constructable(
&mut self,
cb: impl for<'a> Fn(ConstructableStructure<'a>) -> Result<Vec<Stmt>, Box<dyn Error>>
) -> Result<Vec<Stmt>, Box<dyn Error>>
pub fn map_constructable(
&mut self,
cb: impl for<'a> Fn(ConstructableStructure<'a>) -> Result<Vec<Stmt>, Box<dyn Error>>
) -> Result<Vec<Stmt>, Box<dyn Error>>
Evaluates every constructable form of item and asks to produce a vector of statements to operate on item