pub struct TileBuildCx<'a> { /* private fields */ }Expand description
Tile-worker layout context passed to LayerPlugin::build_tile_geometry.
Implementations§
Source§impl<'a> TileBuildCx<'a>
impl<'a> TileBuildCx<'a>
pub fn tile_id(&self) -> TileId
pub fn mode(&self) -> MapMode
pub fn pixel_ratio(&self) -> f32
pub fn first_load(&self) -> bool
pub fn layer_count(&self) -> usize
pub fn layer(&self, index: usize) -> Option<EvaluatedLayer<'_>>
pub fn eval_layout_f32( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<f32>
pub fn eval_layout_bool( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<bool>
pub fn eval_layout_color( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<Color>
pub fn eval_layout_vec2( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<Vec2>
pub fn eval_layout_lat_lng( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<LatLng>
pub fn eval_layout_rotation_degrees( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<f32>
pub fn eval_layout_str( &mut self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<&str>
pub fn eval_layout_enum( &self, layer_index: usize, layout_slot: u32, for_current_feature: bool, ) -> Result<u32>
pub fn feature_count(&self) -> usize
pub fn load_feature( &mut self, selected_index: usize, ) -> Result<LoadedFeatureInfo>
pub fn feature_ring(&self, ring_index: usize) -> Option<Cow<'_, [PointI16]>>
pub fn populate_binders(&mut self, vertex_count: usize) -> Result<()>
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> 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