pub trait Variable {
// Required method
fn ty(&self) -> VariableType;
}Expand description
A trait that defines types that can be used as API parameters in circuit construction.
This trait enables various types to be used interchangeably in circuit operations, including public variables, private variables, local variables, and constant values. Each implementor must provide its variable type representation.
Required Methods§
Sourcefn ty(&self) -> VariableType
fn ty(&self) -> VariableType
Returns the variable type representation for this variable. This is used internally by the circuit builder to track variable usage.