pub enum Contains {
No,
OnBounds,
WithinBounds,
}Expand description
This is a result type for containment checks.
NoNot inside.OnBoundsLies on the boundaries.WithinBoundsFully inside.
Variants§
Implementations§
Source§impl Contains
impl Contains
pub fn is_within_bounds(&self) -> bool
Sourcepub fn inclusive_bounds(&self) -> bool
pub fn inclusive_bounds(&self) -> bool
Tells if the point is contained or lies on the bounds.
pub fn on_bounds(&self) -> bool
pub fn is_no(&self) -> bool
Trait Implementations§
impl Copy for Contains
impl Eq for Contains
impl StructuralPartialEq for Contains
Auto Trait Implementations§
impl Freeze for Contains
impl RefUnwindSafe for Contains
impl Send for Contains
impl Sync for Contains
impl Unpin for Contains
impl UnwindSafe for Contains
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