• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 pub(crate) const EXPR_NONE: &str = "::std::option::Option::None";
2 pub(crate) const EXPR_VEC_NEW: &str = "::std::vec::Vec::new()";
3 
expr_vec_with_capacity(capacity: &str) -> String4 fn expr_vec_with_capacity(capacity: &str) -> String {
5     format!("::std::vec::Vec::with_capacity({})", capacity)
6 }
7 
expr_vec_with_capacity_const(capacity: usize) -> String8 pub(crate) fn expr_vec_with_capacity_const(capacity: usize) -> String {
9     expr_vec_with_capacity(&capacity.to_string())
10 }
11