1#[derive(Debug, PartialEq, Eq)]
4pub struct BorrowedEntry<'a, R, C, W> {
5 pub row: &'a R,
6 pub column: &'a C,
7 pub weight: &'a W,
8}
9
10impl<'a, R, C, W> Clone for BorrowedEntry<'a, R, C, W> {
11 fn clone(&self) -> Self {
12 Self {
13 row: self.row,
14 column: self.column,
15 weight: self.weight,
16 }
17 }
18}
19
20impl<'a, R, C, W> Copy for BorrowedEntry<'a, R, C, W> {}
21
22#[derive(Debug, Clone, PartialEq, Eq)]
23pub struct OwnedEntry<R, C, W> {
24 pub row: R,
25 pub column: C,
26 pub weight: W,
27}