Removes Default and pub from CumulativeOffset (#33840)
This commit is contained in:
parent
abf51864b4
commit
612e8e8457
|
@ -332,14 +332,14 @@ const _: () = assert!(
|
||||||
"CalculateHashIntermediate cannot have any padding"
|
"CalculateHashIntermediate cannot have any padding"
|
||||||
);
|
);
|
||||||
|
|
||||||
#[derive(Default, Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct CumulativeOffset {
|
struct CumulativeOffset {
|
||||||
/// Since the source data is at most 2D, two indexes are enough.
|
/// Since the source data is at most 2D, two indexes are enough.
|
||||||
pub index: [usize; 2],
|
index: [usize; 2],
|
||||||
pub start_offset: usize,
|
start_offset: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait ExtractSliceFromRawData<'b, T: 'b> {
|
trait ExtractSliceFromRawData<'b, T: 'b> {
|
||||||
fn extract<'a>(&'b self, offset: &'a CumulativeOffset, start: usize) -> &'b [T];
|
fn extract<'a>(&'b self, offset: &'a CumulativeOffset, start: usize) -> &'b [T];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue