Struct SymbolBucket

Source
pub struct SymbolBucket {
Show 27 fields layout: SymbolLayoutProperties_PossiblyEvaluated, bucket_leader_id: String, sorted_angle: f64, icons_need_linear: bool, sort_features_by_y: bool, static_uploaded: bool, placement_changes_uploaded: bool, dynamic_uploaded: bool, sort_uploaded: bool, icons_in_text: bool, pub just_reloaded: bool, has_variable_placement: bool, has_uninitialized_symbols: bool, pub sort_key_ranges: Vec<SortKeyRange>, pub paint_properties: HashMap<String, PaintProperties>, pub text_size_binder: Box<SymbolSizeBinder>, pub text: SymbolBucketBuffer, pub icon_size_binder: Box<SymbolSizeBinder>, pub icon: SymbolBucketBuffer, pub sdf_icon: SymbolBucketBuffer, tile_pixel_ratio: f64, bucket_instance_id: u32, allow_vertical_placement: bool, placement_modes: Vec<TextWritingModeType>, has_format_section_overrides: Option<bool>, feature_sort_order: FeatureSortOrder, uploaded: bool,
}
Expand description

maplibre/maplibre-native#4add9ea original name: CollisionBuffer maplibre/maplibre-native#4add9ea original name: CollisionBoxBuffer maplibre/maplibre-native#4add9ea original name: LineIndexVector maplibre/maplibre-native#4add9ea original name: CollisionCircleBuffer maplibre/maplibre-native#4add9ea original name: TriangleIndexVector maplibre/maplibre-native#4add9ea original name: SymbolBucket

Fields§

§layout: SymbolLayoutProperties_PossiblyEvaluated§bucket_leader_id: String§sorted_angle: f64§icons_need_linear: bool§sort_features_by_y: bool§static_uploaded: bool§placement_changes_uploaded: bool§dynamic_uploaded: bool§sort_uploaded: bool§icons_in_text: bool§just_reloaded: bool§has_variable_placement: bool§has_uninitialized_symbols: bool§sort_key_ranges: Vec<SortKeyRange>§paint_properties: HashMap<String, PaintProperties>§text_size_binder: Box<SymbolSizeBinder>§text: SymbolBucketBuffer

maplibre/maplibre-native#4add9ea original name: VertexVector maplibre/maplibre-native#4add9ea original name: VertexBuffer maplibre/maplibre-native#4add9ea original name: DynamicVertexVector maplibre/maplibre-native#4add9ea original name: DynamicVertexBuffer maplibre/maplibre-native#4add9ea original name: OpacityVertexVector maplibre/maplibre-native#4add9ea original name: OpacityVertexBuffer

§icon_size_binder: Box<SymbolSizeBinder>§icon: SymbolBucketBuffer§sdf_icon: SymbolBucketBuffer§tile_pixel_ratio: f64

maplibre/maplibre-native#4add9ea original name: CollisionVertexVector maplibre/maplibre-native#4add9ea original name: CollisionDynamicVertexVector

§bucket_instance_id: u32§allow_vertical_placement: bool§placement_modes: Vec<TextWritingModeType>§has_format_section_overrides: Option<bool>§feature_sort_order: FeatureSortOrder§uploaded: bool

Implementations§

Source§

impl SymbolBucket

Source

pub fn new( layout_: SymbolLayoutProperties_PossiblyEvaluated, paint_properties: &BTreeMap<String, LayerProperties>, text_size: &PropertyValue<f64>, icon_size: &PropertyValue<f64>, zoom: f64, icons_need_linear: bool, sort_features_by_y: bool, bucket_name: String, symbol_instances: Vec<SymbolInstance>, sort_key_ranges: Vec<SortKeyRange>, tile_pixel_ratio: f64, allow_vertical_placement: bool, placement_modes: Vec<TextWritingModeType>, icons_in_text: bool, ) -> Self

maplibre/maplibre-native#4add9ea original name: new

Source

pub fn upload(&self, pass: &UploadPass)

maplibre/maplibre-native#4add9ea original name: upload

Source

pub fn has_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasData

Source

pub fn has_text_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasTextData

Source

pub fn has_icon_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: has_icon_data

Source

pub fn has_sdf_icon_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasSdfIconData

Source

pub fn has_icon_collision_box_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasIconCollisionBoxData

Source

pub fn has_icon_collision_circle_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasIconCollisionCircleData

Source

pub fn has_text_collision_box_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasTextCollisionBoxData

Source

pub fn has_text_collision_circle_data(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasTextCollisionCircleData

Source

pub fn has_format_section_overrides(&self) -> bool

maplibre/maplibre-native#4add9ea original name: hasFormatSectionOverrides

Source

pub fn sort_features(&self, angle: f64)

maplibre/maplibre-native#4add9ea original name: sortFeatures

Source

pub fn get_sorted_symbols(&self, angle: f64) -> SymbolInstanceReferences

maplibre/maplibre-native#4add9ea original name: getSortedSymbols

Source

pub fn get_symbols( &self, sort_key_range: &Option<SortKeyRange>, ) -> SymbolInstanceReferences

maplibre/maplibre-native#4add9ea original name: getSymbols

Source

pub fn get_query_radius(&self, layer: RenderLayer) -> f64

maplibre/maplibre-native#4add9ea original name: getOrCreateIconCollisionBox maplibre/maplibre-native#4add9ea original name: getOrCreateTextCollisionBox maplibre/maplibre-native#4add9ea original name: getOrCreateIconCollisionCircleBuffer maplibre/maplibre-native#4add9ea original name: getOrCreateTextCollisionCircleBuffer maplibre/maplibre-native#4add9ea original name: getQueryRadius

Source

pub fn needs_upload(&self) -> bool

maplibre/maplibre-native#4add9ea original name: needsUpload

Source

pub fn add_feature( &self, geometry_tile_fature: &SymbolGeometryTileFeature, geometry_collection: &GeometryCollection, image_positions: &HashMap<String, ImagePosition>, patter_layer_map: &HashMap<String, PatternDependency>, value: usize, canonical: &CanonicalTileID, )

maplibre/maplibre-native#4add9ea original name: addFeature

Source

pub fn register_at_cross_tile_index( &self, cross_tile_index: &CrossTileSymbolLayerIndex, render_tile: &RenderTile, ) -> (u32, bool)

maplibre/maplibre-native#4add9ea original name: registerAtCrossTileIndex

Source

pub fn place( &self, placement: &Placement, bucket_placement_data: &BucketPlacementData, values: &BTreeSet<u32>, )

maplibre/maplibre-native#4add9ea original name: place

Source

pub fn update_vertices( placement: &Placement, update_opacities: bool, transform_state: &ViewState, render_tile: &RenderTile, values: &BTreeSet<u32>, )

maplibre/maplibre-native#4add9ea original name: updateVertices

Trait Implementations§

Source§

impl Clone for SymbolBucket

Source§

fn clone(&self) -> SymbolBucket

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SymbolBucket

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> Resource for T
where T: 'static,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,