pub struct ConvertFormat { /* private fields */ }Expand description
Convert to a different PixelFormat.
Implementations§
Source§impl ConvertFormat
impl ConvertFormat
Sourcepub const fn to(to: PixelFormat) -> ConvertFormat
pub const fn to(to: PixelFormat) -> ConvertFormat
Convert whatever comes in to to.
Trait Implementations§
Source§impl Clone for ConvertFormat
impl Clone for ConvertFormat
Source§fn clone(&self) -> ConvertFormat
fn clone(&self) -> ConvertFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConvertFormat
Source§impl Debug for ConvertFormat
impl Debug for ConvertFormat
impl Eq for ConvertFormat
Source§impl Op for ConvertFormat
impl Op for ConvertFormat
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 compute(
&self,
inputs: &[Tile<'_>],
output: &mut TileMut<'_>,
) -> Result<(), PixelsError>
fn compute( &self, inputs: &[Tile<'_>], output: &mut TileMut<'_>, ) -> Result<(), PixelsError>
Source§fn access_pattern(&self) -> AccessPattern
fn access_pattern(&self) -> AccessPattern
How this op reads its inputs; drives tile negotiation (ADR-0003). Read more
Source§impl PartialEq for ConvertFormat
impl PartialEq for ConvertFormat
impl StructuralPartialEq for ConvertFormat
Auto Trait Implementations§
impl Freeze for ConvertFormat
impl RefUnwindSafe for ConvertFormat
impl Send for ConvertFormat
impl Sync for ConvertFormat
impl Unpin for ConvertFormat
impl UnsafeUnpin for ConvertFormat
impl UnwindSafe for ConvertFormat
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