nonempty icon indicating copy to clipboard operation
nonempty copied to clipboard

Implement range indexing

Open musjj opened this issue 11 months ago • 0 comments

It should be possible to index a NonEmpty with a Range{,From,To,Full}:

fn foo(a: Vec<u8>, b: NonEmpty<u8>) {
    let _ = a[5..];
    let _ = b[5..]; // mismatched types expected type `usize` found struct
                    // `std::ops::RangeFrom<{integer}>`
}

musjj avatar Jan 27 '25 12:01 musjj