Enum texel_types::Translation
source · pub enum Translation {
None,
Relative(i32, i32, i32),
Absolute(i32, i32, Option<i32>),
ToEdge(Direction),
}
Expand description
Describes the translation operation
Variants§
None
None for avoiding the need for Option<>
Relative(i32, i32, i32)
Relative to current Position
Absolute(i32, i32, Option<i32>)
Absolute with optional Z coordinate
ToEdge(Direction)
To edge of constrained area in given direction
Trait Implementations§
source§impl Clone for Translation
impl Clone for Translation
source§fn clone(&self) -> Translation
fn clone(&self) -> Translation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Translation
impl Debug for Translation
source§impl Default for Translation
impl Default for Translation
source§impl PartialEq for Translation
impl PartialEq for Translation
source§fn eq(&self, other: &Translation) -> bool
fn eq(&self, other: &Translation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Translation
impl Eq for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnwindSafe for Translation
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