pub struct FilterCircle { /* private fields */ }
Expand description
FilterCircle, a circle filter within 2D space
Implementations§
Trait Implementations§
Source§impl Clone for FilterCircle
impl Clone for FilterCircle
Source§fn clone(&self) -> FilterCircle
fn clone(&self) -> FilterCircle
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 FilterCircle
impl Debug for FilterCircle
Source§impl Default for FilterCircle
impl Default for FilterCircle
Source§fn default() -> FilterCircle
fn default() -> FilterCircle
Returns the “default value” for a type. Read more
Source§impl HasBoundingBox2D for FilterCircle
impl HasBoundingBox2D for FilterCircle
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 FilterCircle
impl HasBoundingBox2DMaybe for FilterCircle
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 FilterCircle
impl Hash for FilterCircle
Source§impl Is2D for FilterCircle
impl Is2D for FilterCircle
Source§fn abs(&self) -> NonNegative
fn abs(&self) -> NonNegative
The absolute / length of this position
Source§impl IsBuildable2D for FilterCircle
impl IsBuildable2D for FilterCircle
Source§impl IsBuildableND for FilterCircle
impl IsBuildableND for FilterCircle
Source§impl IsEditable2D for FilterCircle
impl IsEditable2D for FilterCircle
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 FilterCircle
impl IsEditableND for FilterCircle
Source§impl<T> IsFilter<T> for FilterCirclewhere
T: Is2D,
impl<T> IsFilter<T> for FilterCirclewhere
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 FilterCircle
impl IsND for FilterCircle
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 FilterCircle
impl IsScalable for FilterCircle
Source§impl Ord for FilterCircle
impl Ord for FilterCircle
Source§fn cmp(&self, other: &FilterCircle) -> Ordering
fn cmp(&self, other: &FilterCircle) -> 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 FilterCircle
impl PartialEq for FilterCircle
Source§impl PartialOrd for FilterCircle
impl PartialOrd for FilterCircle
impl Eq for FilterCircle
impl StructuralPartialEq for FilterCircle
Auto Trait Implementations§
impl Freeze for FilterCircle
impl RefUnwindSafe for FilterCircle
impl Send for FilterCircle
impl Sync for FilterCircle
impl Unpin for FilterCircle
impl UnwindSafe for FilterCircle
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