Creates a new `StructBuilder` from [`Fields`] and `capacity`
(fields: impl Into<Fields>, capacity: usize)
| 175 | |
| 176 | /// Creates a new `StructBuilder` from [`Fields`] and `capacity` |
| 177 | pub fn from_fields(fields: impl Into<Fields>, capacity: usize) -> Self { |
| 178 | let fields = fields.into(); |
| 179 | let mut builders = Vec::with_capacity(fields.len()); |
| 180 | for field in &fields { |
| 181 | builders.push(make_builder(field.data_type(), capacity)); |
| 182 | } |
| 183 | Self::new(fields, builders) |
| 184 | } |
| 185 | |
| 186 | /// Returns a mutable reference to the child field builder at index `i`. |
| 187 | /// Result will be `None` if the input type `T` provided doesn't match the actual |
nothing calls this directly
no test coverage detected