Struct flydra_types::XYGridConfig
source · pub struct XYGridConfig { /* private fields */ }
Expand description
Parameters defining a 2D grid of mini arenas arranged along X and Y axes.
Implementations§
source§impl XYGridConfig
impl XYGridConfig
pub fn new(x: &[f64], y: &[f64], radius: f64) -> Self
pub fn iter_centers(&self) -> impl Iterator<Item = (f64, f64)>
pub fn get_arena_index(&self, coords: &Point3<MyFloat>) -> MiniArenaLocator
Trait Implementations§
source§impl Clone for XYGridConfig
impl Clone for XYGridConfig
source§fn clone(&self) -> XYGridConfig
fn clone(&self) -> XYGridConfig
Returns a copy 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 moresource§impl Debug for XYGridConfig
impl Debug for XYGridConfig
source§impl<'de> Deserialize<'de> for XYGridConfig
impl<'de> Deserialize<'de> for XYGridConfig
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 XYGridConfig
impl PartialEq for XYGridConfig
source§fn eq(&self, other: &XYGridConfig) -> bool
fn eq(&self, other: &XYGridConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for XYGridConfig
impl Serialize for XYGridConfig
impl StructuralPartialEq for XYGridConfig
Auto Trait Implementations§
impl Freeze for XYGridConfig
impl RefUnwindSafe for XYGridConfig
impl Send for XYGridConfig
impl Sync for XYGridConfig
impl Unpin for XYGridConfig
impl UnwindSafe for XYGridConfig
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.