pub struct Rotate { /* private fields */ }Expand description
Rotate an image by a multiple of 90 degrees.
Implementations§
Trait Implementations§
impl Copy for Rotate
impl Eq for Rotate
Source§impl Op for Rotate
impl Op for Rotate
Source§fn rescaled(&self) -> Option<Arc<dyn Op>>
fn rescaled(&self) -> Option<Arc<dyn Op>>
A rotation by a multiple of 90 degrees carries no length or coordinate: it permutes pixels, so it means the same thing whatever resolution they arrive at, and holds no state to discard.
Source§fn output_descriptor(
&self,
inputs: &[ImageDescriptor],
) -> Result<ImageDescriptor, PixelsError>
fn output_descriptor( &self, inputs: &[ImageDescriptor], ) -> Result<ImageDescriptor, PixelsError>
Compute the output shape from the input shapes. Read more
Source§fn input_regions(
&self,
output: Region,
inputs: &[ImageDescriptor],
) -> Result<Vec<Region>, PixelsError>
fn input_regions( &self, output: Region, inputs: &[ImageDescriptor], ) -> Result<Vec<Region>, PixelsError>
The input regions needed to produce
output. Read moreSource§fn access_pattern(&self) -> AccessPattern
fn access_pattern(&self) -> AccessPattern
How this op reads its inputs; drives tile negotiation (ADR-0003). Read more
impl StructuralPartialEq for Rotate
Auto Trait Implementations§
impl Freeze for Rotate
impl RefUnwindSafe for Rotate
impl Send for Rotate
impl Sync for Rotate
impl Unpin for Rotate
impl UnsafeUnpin for Rotate
impl UnwindSafe for Rotate
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