Lines Matching defs:str

42     pub fn write_generated_by(&mut self, pkg: &str, version: &str) {  in write_generated_by()
74 pub fn todo(&mut self, message: &str) { in todo()
103 pub fn pub_const(&mut self, name: &str, field_type: &str, init: &str) { in pub_const()
107 pub fn lazy_static(&mut self, name: &str, ty: &str, customize: &Customize) { in lazy_static()
117 pub fn lazy_static_decl_get<F>(&mut self, name: &str, ty: &str, customize: &Customize, init: F) in lazy_static_decl_get()
129 name: &str, in lazy_static_decl_get_simple()
130 ty: &str, in lazy_static_decl_get_simple()
131 init: &str, in lazy_static_decl_get_simple()
138 pub fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block()
147 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block()
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() argument
182 pub fn impl_args_for_block<F>(&mut self, args: &[&str], tr: &str, ty: &str, cb: F) in impl_args_for_block()
194 pub fn unsafe_impl(&mut self, what: &str, for_what: &str) { in unsafe_impl()
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()
212 pub fn pub_enum<F>(&mut self, name: &str, cb: F) in pub_enum()
219 pub fn pub_trait<F>(&mut self, name: &str, cb: F) in pub_trait()
226 pub fn pub_trait_extend<F>(&mut self, name: &str, extend: &str, cb: F) in pub_trait_extend()
233 pub fn field_entry(&mut self, name: &str, value: &str) { in field_entry()
237 pub fn field_decl(&mut self, name: &str, field_type: &str) { in field_decl()
241 pub fn pub_field_decl(&mut self, name: &str, field_type: &str) { in pub_field_decl()
245 pub fn field_decl_vis(&mut self, vis: Visibility, name: &str, field_type: &str) { in field_decl_vis()
252 pub fn derive(&mut self, derive: &[&str]) { in derive() method
257 pub fn allow(&mut self, what: &[&str]) { in allow()
262 pub fn comment(&mut self, comment: &str) { in comment() method
270 pub fn fn_def(&mut self, sig: &str) { in fn_def()
274 pub fn fn_block<F>(&mut self, public: bool, sig: &str, cb: F) in fn_block()
285 pub fn pub_fn<F>(&mut self, sig: &str, cb: F) in pub_fn()
292 pub fn def_fn<F>(&mut self, sig: &str, cb: F) in def_fn()
299 pub fn def_mod<F>(&mut self, name: &str, cb: F) in def_mod()
306 pub fn pub_mod<F>(&mut self, name: &str, cb: F) in pub_mod()
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()
340 pub fn if_let_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_stmt()
348 pub fn if_let_else_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_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() argument
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()