pub struct FuncAtMut<'a, P: Copy> {
pub control_regions: &'a mut EntityDefs<ControlRegion>,
pub control_nodes: &'a mut EntityDefs<ControlNode>,
pub data_insts: &'a mut EntityDefs<DataInst>,
pub position: P,
}
Expand description
Mutable traversal (i.e. transforming) helper for intra-function entities.
The point/position type P
should be an entity or a shallow entity wrapper
(e.g. EntityList<ControlNode>
).
Fields§
§control_regions: &'a mut EntityDefs<ControlRegion>
§control_nodes: &'a mut EntityDefs<ControlNode>
§data_insts: &'a mut EntityDefs<DataInst>
§position: P
Implementations§
source§impl<'a> FuncAtMut<'a, ControlRegion>
impl<'a> FuncAtMut<'a, ControlRegion>
pub fn def(self) -> &'a mut ControlRegionDef
pub fn at_children(self) -> FuncAtMut<'a, EntityList<ControlNode>>
source§impl<'a> FuncAtMut<'a, EntityList<ControlNode>>
impl<'a> FuncAtMut<'a, EntityList<ControlNode>>
pub fn into_iter(self) -> FuncAtMut<'a, EntityListIter<ControlNode>>
source§impl FuncAtMut<'_, EntityListIter<ControlNode>>
impl FuncAtMut<'_, EntityListIter<ControlNode>>
pub fn next(&mut self) -> Option<FuncAtMut<'_, ControlNode>>
source§impl<'a> FuncAtMut<'a, ControlNode>
impl<'a> FuncAtMut<'a, ControlNode>
pub fn def(self) -> &'a mut ControlNodeDef
source§impl<'a> FuncAtMut<'a, EntityList<DataInst>>
impl<'a> FuncAtMut<'a, EntityList<DataInst>>
pub fn into_iter(self) -> FuncAtMut<'a, EntityListIter<DataInst>>
source§impl FuncAtMut<'_, EntityListIter<DataInst>>
impl FuncAtMut<'_, EntityListIter<DataInst>>
Trait Implementations§
source§impl InnerInPlaceTransform for FuncAtMut<'_, ControlNode>
impl InnerInPlaceTransform for FuncAtMut<'_, ControlNode>
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl InnerInPlaceTransform for FuncAtMut<'_, ControlRegion>
impl InnerInPlaceTransform for FuncAtMut<'_, ControlRegion>
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl InnerInPlaceTransform for FuncAtMut<'_, DataInst>
impl InnerInPlaceTransform for FuncAtMut<'_, DataInst>
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl InnerInPlaceTransform for FuncAtMut<'_, EntityListIter<ControlNode>>
impl InnerInPlaceTransform for FuncAtMut<'_, EntityListIter<ControlNode>>
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
Auto Trait Implementations§
impl<'a, P> RefUnwindSafe for FuncAtMut<'a, P>where P: RefUnwindSafe,
impl<'a, P> Send for FuncAtMut<'a, P>where P: Send,
impl<'a, P> Sync for FuncAtMut<'a, P>where P: Sync,
impl<'a, P> Unpin for FuncAtMut<'a, P>where P: Unpin,
impl<'a, P> !UnwindSafe for FuncAtMut<'a, P>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more