Skip to main content

TileBuildCx

Struct TileBuildCx 

Source
pub struct TileBuildCx<'a> { /* private fields */ }
Expand description

Tile-worker layout context passed to LayerPlugin::build_tile_geometry.

Implementations§

Source§

impl<'a> TileBuildCx<'a>

Source

pub fn tile_id(&self) -> TileId

Source

pub fn zoom(&self) -> f64

Tile layout zoom level (tile_id().overscaled_z as f64).

Source

pub fn mode(&self) -> MapMode

Source

pub fn pixel_ratio(&self) -> f32

Source

pub fn first_load(&self) -> bool

Source

pub fn layer_count(&self) -> usize

Source

pub fn layer(&self, index: usize) -> Option<EvaluatedLayer<'_>>

Source

pub fn eval_layout_f32( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<f32>

Source

pub fn eval_layout_bool( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<bool>

Source

pub fn eval_layout_color( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<Color>

Source

pub fn eval_layout_vec2( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<Vec2>

Source

pub fn eval_layout_lat_lng( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<LatLng>

Source

pub fn eval_layout_rotation_degrees( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<f32>

Source

pub fn eval_layout_str( &mut self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<&str>

Source

pub fn eval_layout_enum( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<u32>

Source

pub fn feature_count(&self) -> usize

Source

pub fn load_feature( &mut self, selected_index: usize, ) -> Result<LoadedFeatureInfo>

Source

pub fn feature_ring(&self, ring_index: usize) -> Option<Cow<'_, [PointI16]>>

Source

pub fn populate_binders(&mut self, vertex_count: usize) -> Result<()>

Source

pub fn index_current_feature(&mut self) -> Result<()>

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for TileBuildCx<'a>

§

impl<'a> !Send for TileBuildCx<'a>

§

impl<'a> !Sync for TileBuildCx<'a>

§

impl<'a> !UnwindSafe for TileBuildCx<'a>

§

impl<'a> Forget for TileBuildCx<'a>

§

impl<'a> Freeze for TileBuildCx<'a>
where &'a mut dyn TileBuildCxBackend: Freeze,

§

impl<'a> Move for TileBuildCx<'a>

§

impl<'a> Unpin for TileBuildCx<'a>
where &'a mut dyn TileBuildCxBackend: Unpin,

§

impl<'a> UnsafeUnpin for TileBuildCx<'a>
where &'a mut dyn TileBuildCxBackend: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.