/// Add the definition for a builtin operator to a scope.
Add the definition for a builtin operator to a scope.
Add the definition for a builtin operator to a scope .
fn define_builtin_op<O>(scope: &mut Scope, op: O, id: BuiltinOpRef)
where
    O: Into<Operator>,
{
    scope
        .defs
        .entry(ResolvableName::Operator(op.into()))
        .or_insert_with(|| Vec::new())
        .push(Spanned::new(Def::BuiltinOp(id), INVALID_SPAN));
}
fn define_builtin_op < O > ( scope : & mut Scope , op : O , id : BuiltinOpRef ) where O : Into < Operator > , { scope . defs . entry ( ResolvableName :: Operator ( op . into ( ) ) ) . or_insert_with ( | | Vec :: new ( ) ) . push ( Spanned :: new ( Def :: BuiltinOp ( id ) , INVALID_SPAN ) ) ; }
Add the definition for a builtin operator to a scope.
Add the definition for a builtin operator to a scope .
scope
&mut Scope
op
O
id
BuiltinOpRef