Struct mutils::geom::PointPosition
source · [−]pub struct PointPosition(pub HorizontalPosition, pub VerticalPosition);
Tuple Fields
0: HorizontalPosition
1: VerticalPosition
Implementations
sourceimpl PointPosition
impl PointPosition
pub fn new(horizontal: HorizontalPosition, vertical: VerticalPosition) -> Self
pub fn horizontal(self) -> HorizontalPosition
pub fn vertical(self) -> VerticalPosition
pub fn is_left(self) -> bool
pub fn is_right(self) -> bool
pub fn is_above(self) -> bool
pub fn is_below(self) -> bool
pub fn is_entirely_inside(self) -> bool
pub fn is_outside(self) -> bool
pub fn is_entirely_outside(self) -> bool
Trait Implementations
sourceimpl Clone for PointPosition
impl Clone for PointPosition
sourcefn clone(&self) -> PointPosition
fn clone(&self) -> PointPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PointPosition
impl Debug for PointPosition
sourceimpl PartialEq<PointPosition> for PointPosition
impl PartialEq<PointPosition> for PointPosition
sourcefn eq(&self, other: &PointPosition) -> bool
fn eq(&self, other: &PointPosition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PointPosition) -> bool
fn ne(&self, other: &PointPosition) -> bool
This method tests for !=
.
impl Copy for PointPosition
impl StructuralPartialEq for PointPosition
Auto Trait Implementations
impl RefUnwindSafe for PointPosition
impl Send for PointPosition
impl Sync for PointPosition
impl Unpin for PointPosition
impl UnwindSafe for PointPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more