protobuf-codegen 3.7.2

Code generator for rust-protobuf. Includes a library to invoke programmatically (e. g. from `build.rs`) and `protoc-gen-rs` binary.
Documentation
1
2
3
4
5
6
7
8
9
10
pub(crate) const EXPR_NONE: &str = "::std::option::Option::None";
pub(crate) const EXPR_VEC_NEW: &str = "::std::vec::Vec::new()";

fn expr_vec_with_capacity(capacity: &str) -> String {
    format!("::std::vec::Vec::with_capacity({})", capacity)
}

pub(crate) fn expr_vec_with_capacity_const(capacity: usize) -> String {
    expr_vec_with_capacity(&capacity.to_string())
}