mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-12 01:45:29 -04:00
feat(sdk): ItemPosition has the copy semantics.
This patch implements `Copy` and `Clone` for `ItemPosition`.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user