Enum libreda_db::prelude::ContainsResult [−][src]
This is a result type for containment checks.
No
Not inside.OnBounds
Lies on the boundaries.WithinBounds
Fully inside.
Variants
Does not contain the point.
Contains the point but on the borders/end-points.
Fully contains the point.
Implementations
impl ContainsResult
[src]
pub fn is_within_bounds(&self) -> bool
[src]
Tells if the point is contained but does not lie on the bounds.
pub fn inclusive_bounds(&self) -> bool
[src]
Tells if the point is contained or lies on the bounds.
pub fn on_bounds(&self) -> bool
[src]
Check if the point neither is on the bounds nor within the bounds.
pub fn is_no(&self) -> bool
[src]
Check if the point lies on the bounds.
pub fn max(self, other: ContainsResult) -> ContainsResult
[src]
Returns the stronger result of the both.
Ordering from weak to strong is No
, OnBounds
, WithinBounds
pub fn min(self, other: ContainsResult) -> ContainsResult
[src]
Returns the weaker result of the both.
Ordering from weak to strong is No
, OnBounds
, WithinBounds
Trait Implementations
impl Clone for ContainsResult
[src]
pub fn clone(&self) -> ContainsResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ContainsResult
[src]
impl Debug for ContainsResult
[src]
impl Eq for ContainsResult
[src]
impl PartialEq<ContainsResult> for ContainsResult
[src]
pub fn eq(&self, other: &ContainsResult) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ContainsResult
[src]
impl StructuralPartialEq for ContainsResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContainsResult
impl Send for ContainsResult
impl Sync for ContainsResult
impl Unpin for ContainsResult
impl UnwindSafe for ContainsResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,