pub struct LevelInfo {
pub width: u32,
pub height: u32,
pub tile_width: u32,
pub tile_height: u32,
pub tiles_x: u32,
pub tiles_y: u32,
pub downsample: f64,
}Expand description
Information about a single pyramid level.
This struct provides a snapshot of level metadata that can be queried without async operations.
Fields§
§width: u32Width of this level in pixels
height: u32Height of this level in pixels
tile_width: u32Width of each tile in pixels
tile_height: u32Height of each tile in pixels
tiles_x: u32Number of tiles in X direction
tiles_y: u32Number of tiles in Y direction
downsample: f64Downsample factor relative to level 0
Level 0 has downsample 1.0, level 1 might have 2.0, etc.
Trait Implementations§
impl Copy for LevelInfo
impl StructuralPartialEq for LevelInfo
Auto Trait Implementations§
impl Freeze for LevelInfo
impl RefUnwindSafe for LevelInfo
impl Send for LevelInfo
impl Sync for LevelInfo
impl Unpin for LevelInfo
impl UnwindSafe for LevelInfo
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,
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 moreCreates a shared type from an unshared type.