Inline specialization
Warning: This is a half-baked idea. There are many soundness issues with specialization in its current form. I would like to propose an alternative. While it may not be as powerful, it should be sound due to its…
Topic - Edition
Warning: This is a half-baked idea. There are many soundness issues with specialization in its current form. I would like to propose an alternative. While it may not be as powerful, it should be sound due to its…
I have a struct: struct DocPos { block: Uuid, offset: usize, flags: u32 } And lots of functions around it, for example: fn doc_pos_to_utf16_index(pos: DocPos) -> Utf16Index fn compare_positions(&self, a: &DocPos, b:…
I have the following snippet (minimization of a similar problem encountered in real code): const N: usize = 32; fn read(block: &[u8; 8 * N]) -> [u64; N] { let (chunks, tail) = block.as_chunks();…