pub struct SymbolTile<'a> {
pub source: &'a str,
pub coord: (u8, u32, u32),
pub wrap: i32,
pub tile: &'a Tile,
pub ox: f64,
pub oy: f64,
pub unit_px: f64,
pub overscaling: f64,
}Expand description
A tile placed on the canvas, as the renderer sees it.
Fields§
§source: &'a strStyle source id the tile belongs to; layers place features only from their own source’s tiles.
coord: (u8, u32, u32)§wrap: i32World copy (OverscaledTileID.wrap); placement orders by it first.
tile: &'a Tile§ox: f64§oy: f64§unit_px: f64Canvas px per 8192-extent tile unit.
overscaling: f642^(floor(zoom) - tile z): MapLibre’s overscaling.
Auto Trait Implementations§
impl<'a> Freeze for SymbolTile<'a>
impl<'a> RefUnwindSafe for SymbolTile<'a>
impl<'a> Send for SymbolTile<'a>
impl<'a> Sync for SymbolTile<'a>
impl<'a> Unpin for SymbolTile<'a>
impl<'a> UnsafeUnpin for SymbolTile<'a>
impl<'a> UnwindSafe for SymbolTile<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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