fn put_index(
        &mut self,
        index: index::GuardedIndex,
        context: &ExpressionContext,
        is_scoped: bool,
    ) -> BackendResult {
        match index {
            index::GuardedIndex::Expression(expr) => {
                self.put_expression(expr, context, is_scoped)?
            }
            index::GuardedIndex::Known(value) => write!(self.out, "{}", value)?,
        }
        Ok(())
    }
/// Write a `GuardedIndex` as a Metal expression.
Write a `GuardedIndex` as a Metal expression.
Write a ` GuardedIndex ` as a Metal expression .
fn put_index(
        &mut self,
        index: index::GuardedIndex,
        context: &ExpressionContext,
        is_scoped: bool,
    ) -> BackendResult {
        match index {
            index::GuardedIndex::Expression(expr) => {
                self.put_expression(expr, context, is_scoped)?
            }
            index::GuardedIndex::Known(value) => write!(self.out, "{}", value)?,
        }
        Ok(())
    }
fn put_index ( & mut self , index : index :: GuardedIndex , context : & ExpressionContext , is_scoped : bool , ) -> BackendResult { match index { index :: GuardedIndex :: Expression ( expr ) => { self . put_expression ( expr , context , is_scoped ) ? } index :: GuardedIndex :: Known ( value ) => write ! ( self out " " value ) ? , } Ok ( ( ) ) }
Write a `GuardedIndex` as a Metal expression.
Write a ` GuardedIndex ` as a Metal expression .
&mut self
index
index::GuardedIndex
context
&ExpressionContext
is_scoped
bool
&mut self
index
index::GuardedIndex
context
&ExpressionContext
is_scoped
bool