feat(sdk): `ItemPosition` has the copy semantics.

This patch implements `Copy` and `Clone` for `ItemPosition`.
This commit is contained in:
Ivan Enderlin 2024-03-18 12:57:18 +01:00
parent 4774cc8e65
commit 9dcab4ed30
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ impl ChunkIdentifier {
///
/// It's a pair of a chunk position and an item index. `(…, 0)` represents
/// the last item in the chunk.
#[derive(Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct ItemPosition(ChunkIdentifier, usize);
impl ItemPosition {