pub struct IrTransactionV0<'ir> { /* private fields */ }Implementations§
Source§impl<'ir> IrTransactionV0<'ir>
impl<'ir> IrTransactionV0<'ir>
pub fn new( ir: &'ir mut TransformIrV0, pass_id: impl Into<String>, declared_region: IrEditRegionV0, ) -> Self
pub fn replace_node( &mut self, node_id: IrNodeIdV0, canonical_text: impl Into<String>, ) -> Result<(), IrTransactionErrorV0>
pub fn replace_node_covering_span( &mut self, node_id: IrNodeIdV0, canonical_text: impl Into<String>, source_span_start: usize, source_span_end: usize, ) -> Result<(), IrTransactionErrorV0>
pub fn delete_node( &mut self, node_id: IrNodeIdV0, ) -> Result<(), IrTransactionErrorV0>
pub fn unwrap_node( &mut self, node_id: IrNodeIdV0, ) -> Result<(), IrTransactionErrorV0>
pub fn insert_before( &mut self, anchor_id: IrNodeIdV0, kind: IrNodeKindV0, canonical_text: impl Into<String>, ) -> Result<IrNodeIdV0, IrTransactionErrorV0>
pub fn insert_ir_roots_before( &mut self, anchor_id: IrNodeIdV0, inserted_ir: &TransformIrV0, ) -> Result<Vec<IrNodeIdV0>, IrTransactionErrorV0>
pub fn rewrite_value( &mut self, node_id: IrNodeIdV0, canonical_text: impl Into<String>, ) -> Result<(), IrTransactionErrorV0>
pub fn commit(self) -> Result<(), IrTransactionErrorV0>
Auto Trait Implementations§
impl<'ir> !UnwindSafe for IrTransactionV0<'ir>
impl<'ir> Freeze for IrTransactionV0<'ir>
impl<'ir> RefUnwindSafe for IrTransactionV0<'ir>
impl<'ir> Send for IrTransactionV0<'ir>
impl<'ir> Sync for IrTransactionV0<'ir>
impl<'ir> Unpin for IrTransactionV0<'ir>
impl<'ir> UnsafeUnpin for IrTransactionV0<'ir>
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