Enum sark_grids::world_grid::Pivot
source · [−]pub enum Pivot {
TopLeft,
TopRight,
Center,
BottomLeft,
BottomRight,
}
Expand description
A pivot point on a 2d rect.
Variants
TopLeft
+X Right, +Y Down.
TopRight
+X Left, +Y Down.
Center
+X Right, +Y Up.
BottomLeft
+X Right, +Y Up.
BottomRight
+X Left, +Y Up
Implementations
Trait Implementations
impl Copy for Pivot
impl Eq for Pivot
impl StructuralEq for Pivot
impl StructuralPartialEq for Pivot
Auto Trait Implementations
impl RefUnwindSafe for Pivot
impl Send for Pivot
impl Sync for Pivot
impl Unpin for Pivot
impl UnwindSafe for Pivot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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