Expand description
The coordinate translation that only impose shift
Tuple Fields
0: (i32, i32)Trait Implementations
sourceimpl CoordTranslate for Shift
impl CoordTranslate for Shift
sourceimpl ReverseCoordTranslate for Shift
impl ReverseCoordTranslate for Shift
sourcefn reverse_translate(&self, input: (i32, i32)) -> Option<(i32, i32)>
fn reverse_translate(&self, input: (i32, i32)) -> Option<(i32, i32)>
Reverse translate the coordinate from the drawing coordinate to the logic coordinate. Note: the return value is an option, because it’s possible that the drawing coordinate isn’t able to be represented in te guest coordinate system Read more
Auto Trait Implementations
impl RefUnwindSafe for Shift
impl Send for Shift
impl Sync for Shift
impl Unpin for Shift
impl UnwindSafe for Shift
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
impl<T> Pointable for T
impl<T> Pointable for T
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