pub struct FilterBox2D { /* private fields */ }
Expand description
FilterBox2D, a box filter within 2D space
Implementations§
Trait Implementations§
Source§impl Clone for FilterBox2D
impl Clone for FilterBox2D
Source§fn clone(&self) -> FilterBox2D
fn clone(&self) -> FilterBox2D
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 FilterBox2D
impl Debug for FilterBox2D
Source§impl Default for FilterBox2D
impl Default for FilterBox2D
Source§fn default() -> FilterBox2D
fn default() -> FilterBox2D
Returns the “default value” for a type. Read more
Source§impl From<BoundingBox2D> for FilterBox2D
impl From<BoundingBox2D> for FilterBox2D
Source§fn from(x: BoundingBox2D) -> Self
fn from(x: BoundingBox2D) -> Self
Converts to this type from the input type.
Source§impl HasBoundingBox2D for FilterBox2D
impl HasBoundingBox2D for FilterBox2D
Source§fn bounding_box(&self) -> BoundingBox2D
fn bounding_box(&self) -> BoundingBox2D
Should return the bounding box if it can be calculated
Source§impl HasBoundingBox2DMaybe for FilterBox2D
impl HasBoundingBox2DMaybe for FilterBox2D
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
Should return the bounding box if it can be calculated
Source§impl Hash for FilterBox2D
impl Hash for FilterBox2D
Source§impl Is2D for FilterBox2D
impl Is2D for FilterBox2D
Source§fn abs(&self) -> NonNegative
fn abs(&self) -> NonNegative
The absolute / length of this position
Source§impl IsBuildable2D for FilterBox2D
impl IsBuildable2D for FilterBox2D
Source§impl IsBuildableND for FilterBox2D
impl IsBuildableND for FilterBox2D
Source§impl IsEditable2D for FilterBox2D
impl IsEditable2D for FilterBox2D
Source§fn increase_distance_to_by<P>(&mut self, other: &P, factor: Positive)where
P: Is2D,
fn increase_distance_to_by<P>(&mut self, other: &P, factor: Positive)where
P: Is2D,
Increases distance towards other by factor
Source§fn add<P>(&mut self, other: &P)where
P: Is2D,
fn add<P>(&mut self, other: &P)where
P: Is2D,
Adds the coordinates of other onto this. x = x + other.x …
Source§impl IsEditableND for FilterBox2D
impl IsEditableND for FilterBox2D
Source§impl<T> IsFilter<T> for FilterBox2Dwhere
T: Is2D,
impl<T> IsFilter<T> for FilterBox2Dwhere
T: Is2D,
Source§fn is_allowed(&self, p: &T) -> bool
fn is_allowed(&self, p: &T) -> bool
Should return true if a it passes the filter, otherwise false
Source§impl IsND for FilterBox2D
impl IsND for FilterBox2D
Source§fn n_dimensions() -> usize
fn n_dimensions() -> usize
Should return the number of dimensions. E.g. 2 for points in 2D space, 3 for points in 3D space etc.
Source§impl IsScalable for FilterBox2D
impl IsScalable for FilterBox2D
Source§impl Ord for FilterBox2D
impl Ord for FilterBox2D
Source§fn cmp(&self, other: &FilterBox2D) -> Ordering
fn cmp(&self, other: &FilterBox2D) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilterBox2D
impl PartialEq for FilterBox2D
Source§impl PartialOrd for FilterBox2D
impl PartialOrd for FilterBox2D
impl Eq for FilterBox2D
impl StructuralPartialEq for FilterBox2D
Auto Trait Implementations§
impl Freeze for FilterBox2D
impl RefUnwindSafe for FilterBox2D
impl Send for FilterBox2D
impl Sync for FilterBox2D
impl Unpin for FilterBox2D
impl UnwindSafe for FilterBox2D
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> 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