pub struct ColumnLayout {Show 14 fields
pub frame_count: u32,
pub level_count: u32,
pub height: u32,
pub width: u32,
pub block_height: u32,
pub block_width: u32,
pub shard_height: u32,
pub shard_width: u32,
pub shard_count: u32,
pub chunks_per_shard: u32,
pub delta: bool,
pub index_location: IndexLocation,
pub data_type: DataType,
pub fill_value: u16,
}Expand description
How an array is cut: an inner chunk of the whole axis and every level of one block of cells, a shard of whole blocks across the grid’s width.
Fields§
§frame_count: u32§level_count: u321 on a surface array.
height: u32§width: u32§block_height: u32§block_width: u32§shard_height: u32Rows per shard, whole blocks. The last shard’s may run past the grid.
shard_width: u32§shard_count: u32§chunks_per_shard: u32Blocks in a shard, and pairs in its index.
delta: bool§index_location: IndexLocation§data_type: DataTypeU16 on a surface array cut from a series store’s widened variable.
fill_value: u16Implementations§
Source§impl ColumnLayout
impl ColumnLayout
Sourcepub fn column_length(&self) -> usize
pub fn column_length(&self) -> usize
Codes of one cell’s column: frames × levels.
Sourcepub fn index_length(&self) -> usize
pub fn index_length(&self) -> usize
The shard index’s byte length: one pair per block plus the CRC-32C.
Sourcepub fn shard_of(&self, row: u32, column: u32) -> Result<u32, DecodeError>
pub fn shard_of(&self, row: u32, column: u32) -> Result<u32, DecodeError>
The shard a cell lies in.
Sourcepub fn position(&self, row: u32, column: u32) -> Result<usize, DecodeError>
pub fn position(&self, row: u32, column: u32) -> Result<usize, DecodeError>
The index position, within its shard, of the block a cell lies in.
Sourcepub fn shard_index_range(
&self,
shard_length: u64,
) -> Result<(u64, u64), DecodeError>
pub fn shard_index_range( &self, shard_length: u64, ) -> Result<(u64, u64), DecodeError>
The index’s span within a shard of shard_length bytes, [start, end).
Trait Implementations§
Source§impl Clone for ColumnLayout
impl Clone for ColumnLayout
impl Copy for ColumnLayout
Source§impl Debug for ColumnLayout
impl Debug for ColumnLayout
impl Eq for ColumnLayout
Source§impl PartialEq for ColumnLayout
impl PartialEq for ColumnLayout
impl StructuralPartialEq for ColumnLayout
Auto Trait Implementations§
impl Forget for ColumnLayout
impl Freeze for ColumnLayout
impl Move for ColumnLayout
impl RefUnwindSafe for ColumnLayout
impl Send for ColumnLayout
impl Sync for ColumnLayout
impl Unpin for ColumnLayout
impl UnsafeUnpin for ColumnLayout
impl UnwindSafe for ColumnLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more