(
method_groups: &[&[Self]],
)
| 227 | |
| 228 | #[doc(hidden)] |
| 229 | pub const fn __const_concat_arrays<const SUM_LEN: usize>( |
| 230 | method_groups: &[&[Self]], |
| 231 | ) -> [Self; SUM_LEN] { |
| 232 | const NULL_METHOD: PyMethodDef = PyMethodDef { |
| 233 | name: "", |
| 234 | func: &|_, _| unreachable!(), |
| 235 | flags: PyMethodFlags::empty(), |
| 236 | doc: None, |
| 237 | }; |
| 238 | let mut all_methods = [NULL_METHOD; SUM_LEN]; |
| 239 | let mut all_idx = 0; |
| 240 | let mut group_idx = 0; |
| 241 | while group_idx < method_groups.len() { |
| 242 | let group = method_groups[group_idx]; |
| 243 | let mut method_idx = 0; |
| 244 | while method_idx < group.len() { |
| 245 | all_methods[all_idx] = group[method_idx].const_copy(); |
| 246 | method_idx += 1; |
| 247 | all_idx += 1; |
| 248 | } |
| 249 | group_idx += 1; |
| 250 | } |
| 251 | all_methods |
| 252 | } |
| 253 | |
| 254 | const fn const_copy(&self) -> Self { |
| 255 | Self { |
nothing calls this directly
no test coverage detected