// can't take a reference to the escape or argument by parameter since it would cause borrow issues
// so we take an index to get the escape
// and we just have to get the argument directly from self
can't take a reference to the escape or argument by parameter since it would cause borrow issues
so we take an index to get the escape
and we just have to get the argument directly from self
can ' t take a reference to the escape or argument by parameter since it would cause borrow issues so we take an index to get the escape and we just have to get the argument directly from self
fn process_escape(&mut self, escape: &'static dyn EscapeSequence, arg: &str) {
        match escape.transform(arg) {
            Ok(output) => self.escaped_buf.push_str(output.as_str()),
            Err(err) => self.error = Some(err),
        };
    }
fn process_escape ( & mut self , escape : & ' static dyn EscapeSequence , arg : & str ) { match escape . transform ( arg ) { Ok ( output ) => self . escaped_buf . push_str ( output . as_str ( ) ) , Err ( err ) => self . error = Some ( err ) , } ; }
can't take a reference to the escape or argument by parameter since it would cause borrow issues
so we take an index to get the escape
and we just have to get the argument directly from self
can ' t take a reference to the escape or argument by parameter since it would cause borrow issues so we take an index to get the escape and we just have to get the argument directly from self
&mut self
escape
&'static dyn EscapeSequence
arg
&str