pub struct NodeGraphSpatialIndexTuning {
pub enabled: bool,
pub cell_size_screen_px: f32,
pub min_cell_size_screen_px: f32,
}Expand description
Tuning for the optional indexed spatial-query backend.
Fields§
§enabled: boolEnables the spatial backend for store-level query reads.
cell_size_screen_px: f32Preferred cell size in screen pixels (converted to canvas units by dividing by zoom).
min_cell_size_screen_px: f32Minimum cell size in screen pixels (converted to canvas units by dividing by zoom).
Implementations§
Source§impl NodeGraphSpatialIndexTuning
impl NodeGraphSpatialIndexTuning
pub fn enabled(self, enabled: bool) -> Self
pub fn with_cell_size_screen_px(self, cell_size_screen_px: f32) -> Self
pub fn with_min_cell_size_screen_px(self, min_cell_size_screen_px: f32) -> Self
Trait Implementations§
Source§impl Clone for NodeGraphSpatialIndexTuning
impl Clone for NodeGraphSpatialIndexTuning
Source§fn clone(&self) -> NodeGraphSpatialIndexTuning
fn clone(&self) -> NodeGraphSpatialIndexTuning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeGraphSpatialIndexTuning
Source§impl Debug for NodeGraphSpatialIndexTuning
impl Debug for NodeGraphSpatialIndexTuning
Source§impl<'de> Deserialize<'de> for NodeGraphSpatialIndexTuning
impl<'de> Deserialize<'de> for NodeGraphSpatialIndexTuning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeGraphSpatialIndexTuning
impl PartialEq for NodeGraphSpatialIndexTuning
Source§fn eq(&self, other: &NodeGraphSpatialIndexTuning) -> bool
fn eq(&self, other: &NodeGraphSpatialIndexTuning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeGraphSpatialIndexTuning
Auto Trait Implementations§
impl Freeze for NodeGraphSpatialIndexTuning
impl RefUnwindSafe for NodeGraphSpatialIndexTuning
impl Send for NodeGraphSpatialIndexTuning
impl Sync for NodeGraphSpatialIndexTuning
impl Unpin for NodeGraphSpatialIndexTuning
impl UnsafeUnpin for NodeGraphSpatialIndexTuning
impl UnwindSafe for NodeGraphSpatialIndexTuning
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