Searched refs:with_capacity (Results 1 – 4 of 4) sorted by relevance
65 Self::with_capacity(0) in new()69 Self::with_capacity(size) in new_with_capacity()75 pub fn with_capacity(size: usize) -> Self { in with_capacity() method350 smallvec::SmallVec::with_capacity(xs.len()); in create_vector_of_strings()786 Self::with_capacity(0) in default()
526 let mut blocks = Vec::<Vec<u8>>::with_capacity(numblocks); in add_ecc_and_interleave()542 let mut result = Vec::<u8>::with_capacity(rawcodewords); in add_ecc_and_interleave()971 let mut bb = BitBuffer(Vec::with_capacity(data.len() * 8)); in make_bytes()983 let mut bb = BitBuffer(Vec::with_capacity(text.len() * 3 + (text.len() + 2) / 3)); in make_numeric()1010 let mut bb = BitBuffer(Vec::with_capacity(text.len() * 5 + (text.len() + 1) / 2)); in make_alphanumeric()1052 let mut bb = BitBuffer(Vec::with_capacity(24)); in make_eci()
78 bool with_capacity = true; member89 with_capacity ? "" : "_NoCapacity", in ToString()108 return (param.refcount_is_one && param.with_capacity) ? arg == rep : true;378 if (!GetParam().with_capacity) extra_capacity = 0; in CreateWithCapacity()450 for (bool with_capacity : {true, false}) { in CreateTestParams()453 param.with_capacity = with_capacity; in CreateTestParams()477 for (bool with_capacity : {true, false}) { in CreateTestParams()481 param.with_capacity = with_capacity; in CreateTestParams()803 if (GetParam().with_capacity && GetParam().refcount_is_one) { in TEST_P()1131 size_t extra_capacity = 1 + (GetParam().with_capacity ? flats.size() : 0); in TEST_P()[all …]
1183 let mut result_vec: Vec<T> = Vec::with_capacity(got.len()); in prop()1639 let mut got3: Vec<T> = Vec::with_capacity(got2.len()); in prop()