pub struct SymbolCandidateEntry {
pub assigned_cross_tile_id: u64,
/* private fields */
}Expand description
Lightweight input record fed into the cross-tile index.
Callers convert their full super::SymbolCandidate into this compact
representation before passing it to CrossTileSymbolIndex::assign.
The index writes back the assigned cross-tile ID into
assigned_cross_tile_id.
Fields§
§assigned_cross_tile_id: u64Cross-tile ID written by the index. Zero means unassigned.
Implementations§
Source§impl SymbolCandidateEntry
impl SymbolCandidateEntry
Sourcepub fn new(
source_layer: &str,
text: &str,
icon: &str,
anchor_x: f64,
anchor_y: f64,
) -> Self
pub fn new( source_layer: &str, text: &str, icon: &str, anchor_x: f64, anchor_y: f64, ) -> Self
Create a new candidate entry.
source_layer, text, and icon form the deduplication key.
anchor_x and anchor_y are the symbol’s position within the tile
in tile-local coordinates (range [0, EXTENT), matching the MVT
geometry coordinate space).
Trait Implementations§
Source§impl Clone for SymbolCandidateEntry
impl Clone for SymbolCandidateEntry
Source§fn clone(&self) -> SymbolCandidateEntry
fn clone(&self) -> SymbolCandidateEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SymbolCandidateEntry
impl RefUnwindSafe for SymbolCandidateEntry
impl Send for SymbolCandidateEntry
impl Sync for SymbolCandidateEntry
impl Unpin for SymbolCandidateEntry
impl UnsafeUnpin for SymbolCandidateEntry
impl UnwindSafe for SymbolCandidateEntry
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