• Home
  • Raw
  • Download

Lines Matching defs:str

43     pub fn write_generated_by(&mut self, pkg: &str, version: &str) {  in write_generated_by()
75 pub fn todo(&mut self, message: &str) { in todo()
104 pub fn pub_const(&mut self, name: &str, field_type: &str, init: &str) { in pub_const()
108 pub fn lazy_static(&mut self, name: &str, ty: &str, customize: &Customize) { in lazy_static()
118 pub fn lazy_static_decl_get<F>(&mut self, name: &str, ty: &str, customize: &Customize, init: F) in lazy_static_decl_get()
130 name: &str, in lazy_static_decl_get_simple()
131 ty: &str, in lazy_static_decl_get_simple()
132 init: &str, in lazy_static_decl_get_simple()
139 pub fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block()
148 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block()
155 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
169 pub fn impl_self_block<S: AsRef<str>, F>(&mut self, name: S, cb: F) in impl_self_block()
176 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
183 pub fn impl_args_for_block<F>(&mut self, args: &[&str], tr: &str, ty: &str, cb: F) in impl_args_for_block()
195 pub fn unsafe_impl(&mut self, what: &str, for_what: &str) { in unsafe_impl()
199 pub fn pub_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in pub_struct()
206 pub fn def_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in def_struct()
213 pub fn pub_enum<F>(&mut self, name: &str, cb: F) in pub_enum()
220 pub fn pub_trait<F>(&mut self, name: &str, cb: F) in pub_trait()
227 pub fn pub_trait_extend<F>(&mut self, name: &str, extend: &str, cb: F) in pub_trait_extend()
234 pub fn field_entry(&mut self, name: &str, value: &str) { in field_entry()
238 pub fn field_decl(&mut self, name: &str, field_type: &str) { in field_decl()
242 pub fn pub_field_decl(&mut self, name: &str, field_type: &str) { in pub_field_decl()
246 pub fn field_decl_vis(&mut self, vis: Visibility, name: &str, field_type: &str) { in field_decl_vis()
253 pub fn derive(&mut self, derive: &[&str]) { in derive() method
258 pub fn allow(&mut self, what: &[&str]) { in allow()
263 pub fn comment(&mut self, comment: &str) { in comment() method
271 pub fn fn_def(&mut self, sig: &str) { in fn_def()
275 pub fn fn_block<F>(&mut self, public: bool, sig: &str, cb: F) in fn_block()
286 pub fn pub_fn<F>(&mut self, sig: &str, cb: F) in pub_fn()
293 pub fn def_fn<F>(&mut self, sig: &str, cb: F) in def_fn()
300 pub fn def_mod<F>(&mut self, name: &str, cb: F) in def_mod()
307 pub fn pub_mod<F>(&mut self, name: &str, cb: F) in pub_mod()
314 pub fn while_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in while_block()
322 pub fn if_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_stmt()
330 pub fn if_else_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_else_stmt()
341 pub fn if_let_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_stmt()
349 pub fn if_let_else_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_else_stmt()
356 pub fn for_stmt<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, over: S1, varn: S2, cb: F) in for_stmt() argument
363 pub fn match_block<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_block()
370 pub fn match_expr<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_expr()
377 pub fn case_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in case_block()
384 pub fn case_expr<S1: AsRef<str>, S2: AsRef<str>>(&mut self, cond: S1, body: S2) { in case_expr()