pub struct TileSample {
pub z: u8,
pub x: u32,
pub y: u32,
pub hilbert: u64,
pub time_start: i64,
pub tb: i64,
pub len: u64,
}Expand description
One tile as the simulator sees it. len is the blob byte weight — the
uncompressed payload.len() at finalize, or the compressed entry.length
in the advisor; because range count (the primary cost) is weight-insensitive
both call sites pick the same winner.
Fields§
§z: u8§x: u32§y: u32§hilbert: u64§time_start: i64§tb: i64Time-bucket index (time_start / bucket_ms).
len: u64Trait Implementations§
Source§impl Clone for TileSample
impl Clone for TileSample
Source§fn clone(&self) -> TileSample
fn clone(&self) -> TileSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TileSample
Auto Trait Implementations§
impl Freeze for TileSample
impl RefUnwindSafe for TileSample
impl Send for TileSample
impl Sync for TileSample
impl Unpin for TileSample
impl UnsafeUnpin for TileSample
impl UnwindSafe for TileSample
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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