Skip to main content

IrVisitorMut

Trait IrVisitorMut 

pub trait IrVisitorMut {
    // Provided methods
    fn visit_tensor_mut(&mut self, _tensor: &mut TensorIr) { ... }
    fn visit_scalar_mut(&mut self, _scalar: &mut ScalarIr) { ... }
    fn visit_range_mut(&mut self, _range: &mut Slice) { ... }
}
Expand description

Visitor for mutating the components of an OperationIr in place.

Provided Methods§

fn visit_tensor_mut(&mut self, _tensor: &mut TensorIr)

Visit a TensorIr mutably.

fn visit_scalar_mut(&mut self, _scalar: &mut ScalarIr)

Visit a ScalarIr mutably.

fn visit_range_mut(&mut self, _range: &mut Slice)

Visit a slice range mutably.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§