Lines Matching refs:AsRef
27 pub fn write_line<S: AsRef<str>>(&mut self, line: S) { in write_line()
154 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
168 pub fn impl_self_block<S: AsRef<str>, F>(&mut self, name: S, cb: F) in impl_self_block()
175 pub fn impl_for_block<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, tr: S1, ty: S2, cb: F) in impl_for_block()
198 pub fn pub_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in pub_struct()
205 pub fn def_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in def_struct()
313 pub fn while_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in while_block()
321 pub fn if_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_stmt()
329 pub fn if_else_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_else_stmt()
355 pub fn for_stmt<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, over: S1, varn: S2, cb: F) in for_stmt()
362 pub fn match_block<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_block()
369 pub fn match_expr<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_expr()
376 pub fn case_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in case_block()
383 pub fn case_expr<S1: AsRef<str>, S2: AsRef<str>>(&mut self, cond: S1, body: S2) { in case_expr()