pub struct GroupedPlacesTree<T: Place, G: Group> { /* private fields */ }Implementations§
Source§impl<T: Place, G: Group> GroupedPlacesTree<T, G>
impl<T: Place, G: Group> GroupedPlacesTree<T, G>
pub fn new(places: Vec<T>, group: G) -> Self
pub fn with_settings(self, s: GroupedPlacesTreeSettings) -> Self
pub fn with_screen_radius_px(self, px: f32) -> Self
pub fn with_geo_radius_deg(self, deg: f64) -> Self
pub fn with_max_group_size(self, cap: Option<usize>) -> Self
pub fn viewport_only(self, on: bool) -> Self
pub fn include_offscreen_neighbors(self, on: bool) -> Self
pub fn update_points(&mut self, places: Vec<T>)
pub fn draw_once( &self, ui: &mut Ui, response: &Response, projector: &Projector, memory: &MapMemory, )
pub fn draw_with_stats( &self, ui: &mut Ui, response: &Response, projector: &Projector, memory: &MapMemory, ) -> (usize, usize)
pub fn cluster_stats( &self, rect: Rect, projector: &Projector, memory: &MapMemory, ) -> (usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl<T, G> !Freeze for GroupedPlacesTree<T, G>
impl<T, G> !RefUnwindSafe for GroupedPlacesTree<T, G>
impl<T, G> Send for GroupedPlacesTree<T, G>
impl<T, G> !Sync for GroupedPlacesTree<T, G>
impl<T, G> Unpin for GroupedPlacesTree<T, G>
impl<T, G> UnsafeUnpin for GroupedPlacesTree<T, G>
impl<T, G> UnwindSafe for GroupedPlacesTree<T, G>where
G: RefUnwindSafe,
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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