• Home
  • Raw
  • Download

Lines Matching defs:str

57     pub(crate) fn _write_text(&mut self, text: &str) {  in _write_text()
63 pub(crate) fn write_generated_by(&mut self, pkg: &str, version: &str, parser: &str) { in write_generated_by()
124 pub(crate) fn pub_const(&mut self, name: &str, field_type: &str, init: &str) { in pub_const()
128 pub(crate) fn lazy_static(&mut self, name: &str, ty: &str, protobuf_crate_path: &str) { in lazy_static()
137 name: &str, in lazy_static_decl_get_simple()
138 ty: &str, in lazy_static_decl_get_simple()
139 init: &str, in lazy_static_decl_get_simple()
140 protobuf_crate_path: &str, in lazy_static_decl_get_simple()
148 name: &str, in lazy_static_decl_get()
149 ty: &str, in lazy_static_decl_get()
150 protobuf_crate_path: &str, in lazy_static_decl_get()
157 pub(crate) fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block()
166 pub(crate) fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block()
173 pub(crate) fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
180 pub(crate) fn impl_self_block<S: AsRef<str>, F>(&mut self, name: S, cb: F) in impl_self_block()
187 pub(crate) fn impl_for_block<S1: AsRef<str>, S2: AsRef<str>, F>( in impl_for_block()
198 pub(crate) fn impl_args_for_block<F>(&mut self, args: &[&str], tr: &str, ty: &str, cb: F) in impl_args_for_block()
210 pub(crate) fn pub_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in pub_struct()
217 pub(crate) fn pub_enum<F>(&mut self, name: &str, cb: F) in pub_enum()
224 pub(crate) fn field_entry(&mut self, name: &str, value: &str) { in field_entry()
228 pub(crate) fn field_decl(&mut self, name: &str, field_type: &str) { in field_decl()
232 pub(crate) fn pub_field_decl(&mut self, name: &str, field_type: &str) { in pub_field_decl()
236 pub(crate) fn field_decl_vis(&mut self, vis: Visibility, name: &str, field_type: &str) { in field_decl_vis()
244 pub(crate) fn derive(&mut self, derive: &[&str]) { in derive() method
249 pub(crate) fn allow(&mut self, what: &[&str]) { in allow()
254 pub(crate) fn comment(&mut self, comment: &str) { in comment() method
262 fn documentation(&mut self, comment: &str) { in documentation()
270 pub(crate) fn mod_doc(&mut self, comment: &str) { in mod_doc()
349 pub(crate) fn fn_block<F>(&mut self, vis: Visibility, sig: &str, cb: F) in fn_block()
361 pub(crate) fn pub_fn<F>(&mut self, sig: &str, cb: F) in pub_fn()
368 pub(crate) fn def_fn<F>(&mut self, sig: &str, cb: F) in def_fn()
375 pub(crate) fn pub_mod<F>(&mut self, name: &str, cb: F) in pub_mod()
382 pub(crate) fn while_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in while_block()
390 pub(crate) fn if_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_stmt()
398 pub(crate) fn if_else_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_else_stmt()
409 pub(crate) fn if_let_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_stmt()
417 pub(crate) fn if_let_else_stmt<F>(&mut self, decl: &str, expr: &str, cb: F) in if_let_else_stmt()
424 pub(crate) fn for_stmt<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, over: S1, varn: S2, cb: F) in for_stmt() argument
431 pub(crate) fn match_block<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_block()
438 pub(crate) fn match_expr<S: AsRef<str>, F>(&mut self, value: S, cb: F) in match_expr()
445 pub(crate) fn case_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in case_block()
452 pub(crate) fn case_expr<S1: AsRef<str>, S2: AsRef<str>>(&mut self, cond: S1, body: S2) { in case_expr()