Enum Containment
pub enum Containment {
Inside,
Boundary,
Outside,
}Expand description
A simple inside, boundary, or outside classification.
Variants§
Inside
Strictly inside the containing value.
Boundary
On the boundary of the containing value.
Outside
Outside the containing value.
Implementations§
§impl Containment
impl Containment
pub const fn is_contained(self) -> bool
pub const fn is_contained(self) -> bool
Returns true for inside or boundary classifications.
pub const fn is_outside(self) -> bool
pub const fn is_outside(self) -> bool
Returns true when the classification is strictly outside.
Trait Implementations§
§impl Clone for Containment
impl Clone for Containment
§fn clone(&self) -> Containment
fn clone(&self) -> Containment
Returns a duplicate 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 more§impl Debug for Containment
impl Debug for Containment
§impl PartialEq for Containment
impl PartialEq for Containment
impl Copy for Containment
impl Eq for Containment
impl StructuralPartialEq for Containment
Auto Trait Implementations§
impl Freeze for Containment
impl RefUnwindSafe for Containment
impl Send for Containment
impl Sync for Containment
impl Unpin for Containment
impl UnsafeUnpin for Containment
impl UnwindSafe for Containment
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