Trait CanVisitInstructions

Source
pub trait CanVisitInstructions<V, E>
where V: InstructionVisitor<E>,
{ // Required method fn visit(&self, visitor: &mut V) -> Result<(), E>; }
Expand description

Provides the ability to apply a visitor.

§Type Parameters

  • V: The type of visitor to apply.
  • E: The type of error that can occur while visiting.

Required Methods§

Source

fn visit(&self, visitor: &mut V) -> Result<(), E>

Apply the specified visitor to the receiver.

§Parameters
  • visitor: The visitor to apply.
§Errors

An error if one occurs while visiting the receiver.

Implementors§