Searched refs:expr_block (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/protobuf-codegen/src/ |
D | code_writer.rs | 147 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block() method 165 self.expr_block("unsafe", cb); in unsafe_expr() 172 self.expr_block(&format!("impl {}", name.as_ref()), cb); in impl_self_block() 191 self.expr_block(&format!("impl{} {} for {}", args_str, tr, ty), cb); in impl_args_for_block() 202 self.expr_block(&format!("pub struct {}", name.as_ref()), cb); in pub_struct() 209 self.expr_block(&format!("struct {}", name.as_ref()), cb); in def_struct() 216 self.expr_block(&format!("pub enum {}", name), cb); in pub_enum() 223 self.expr_block(&format!("pub trait {}", name), cb); in pub_trait() 230 self.expr_block(&format!("pub trait {} : {}", name, extend), cb); in pub_trait_extend() 279 self.expr_block(&format!("pub fn {}", sig), cb); in fn_block() [all …]
|
D | enums.rs | 179 w.expr_block(&format!("pub enum {}", type_name), |w| { in write_struct()
|
/external/rust/crates/grpcio-compiler/src/ |
D | codegen.rs | 110 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block() method 121 self.expr_block(&format!("impl {}", name.as_ref()), cb); in impl_self_block() 128 self.expr_block(&format!("pub struct {}", name.as_ref()), cb); in pub_struct() 135 self.expr_block(&format!("pub trait {}", name), cb); in pub_trait() 163 self.expr_block(&format!("pub fn {}", sig), cb); in fn_block() 165 self.expr_block(&format!("fn {}", sig), cb); in fn_block() 587 w.expr_block(&self.client_name(), |w| { in write_client()
|