pub struct Shift(pub BackendCoord);
Expand description
The coordinate translation that only impose shift
Tuple Fields§
§0: BackendCoord
Trait Implementations§
Source§impl CoordTranslate for Shift
impl CoordTranslate for Shift
Source§impl ReverseCoordTranslate for Shift
impl ReverseCoordTranslate for Shift
Source§fn reverse_translate(&self, input: BackendCoord) -> Option<BackendCoord>
fn reverse_translate(&self, input: BackendCoord) -> Option<BackendCoord>
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
Auto Trait Implementations§
impl Freeze for Shift
impl RefUnwindSafe for Shift
impl Send for Shift
impl Sync for Shift
impl Unpin for Shift
impl UnwindSafe for Shift
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