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 cooredinate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more