Type Alias ChunkRanges
pub type ChunkRanges = RangeSet<[ChunkNum; 2]>;
Expand description
A set of chunk ranges
Aliased Type§
struct ChunkRanges(/* private fields */);
Trait Implementations§
Source§impl ChunkRangesExt for ChunkRanges
impl ChunkRangesExt for ChunkRanges
Source§fn bytes(ranges: impl RangeBounds<u64>) -> Self
fn bytes(ranges: impl RangeBounds<u64>) -> Self
Create a range of chunks that contains the given byte ranges. The byte ranges are rounded up to the nearest chunk size.
Source§fn chunks(ranges: impl RangeBounds<u64>) -> Self
fn chunks(ranges: impl RangeBounds<u64>) -> Self
Create a range of chunks from u64 chunk bounds.
This is equivalent but more convenient than using the ChunkNum newtype.