#[non_exhaustive]pub struct BlockLayout {
pub blob_bytes: usize,
pub raw_bytes: usize,
pub zlib: bool,
pub strings: usize,
pub string_bytes: usize,
pub granularity: i64,
pub lat_offset: i64,
pub lon_offset: i64,
pub date_granularity: i64,
pub groups: Vec<Group>,
}Expand description
How a block is stored in its file, from Block::layout: for inspecting files, not for reading their objects.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.blob_bytes: usizeThe size of the blob in the file, after its header: compressed, if it is.
raw_bytes: usizeThe size of the block uncompressed.
zlib: boolWhether the blob is zlib-compressed; otherwise it is stored uncompressed.
strings: usizeThe number of strings in the block’s string table; the first is always empty.
string_bytes: usizeThe bytes of all the strings together.
granularity: i64The block’s coordinate unit in nanodegrees: 100 unless the writer chose another.
lat_offset: i64Added to every latitude, in nanodegrees.
lon_offset: i64Added to every longitude, in nanodegrees.
date_granularity: i64The block’s timestamp unit in milliseconds: 1000 unless the writer chose another.
groups: Vec<Group>The block’s groups, in file order. Writers put one object type in each group; most write one group per block.
Trait Implementations§
Source§impl Clone for BlockLayout
impl Clone for BlockLayout
Source§impl Debug for BlockLayout
impl Debug for BlockLayout
impl Eq for BlockLayout
Source§impl PartialEq for BlockLayout
impl PartialEq for BlockLayout
impl StructuralPartialEq for BlockLayout
Auto Trait Implementations§
impl Forget for BlockLayout
impl Freeze for BlockLayout
impl Move for BlockLayout
impl RefUnwindSafe for BlockLayout
impl Send for BlockLayout
impl Sync for BlockLayout
impl Unpin for BlockLayout
impl UnsafeUnpin for BlockLayout
impl UnwindSafe for BlockLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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