pub trait OperatorInfoRead {
// Required method
fn get_operator_op(
&self,
name: &OperatorName,
has_left: bool,
has_right: bool,
) -> Option<&OperatorDefinition>;
}Expand description
get operator definition
Required Methods§
Sourcefn get_operator_op(
&self,
name: &OperatorName,
has_left: bool,
has_right: bool,
) -> Option<&OperatorDefinition>
fn get_operator_op( &self, name: &OperatorName, has_left: bool, has_right: bool, ) -> Option<&OperatorDefinition>
get operator definition,
has_left, has_right both true then returns Binary operator.
one of has_left, has_right is ture then returns Left unary or Right unary operator.