pub struct Offset {
pub dx: f32,
pub dy: f32,
}Expand description
Translation/shift filter.
This shifts the input image by (dx, dy) in device pixel space.
Fields§
§dx: f32The x-offset that should be applied.
dy: f32The y-offset that should be applied.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnsafeUnpin for Offset
impl UnwindSafe for Offset
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