Struct image_iter::ReinterpretedImageMut
source · pub struct ReinterpretedImageMut<'a, FMT> {
pub orig: &'a mut [u8],
pub width: u32,
pub height: u32,
pub stride: usize,
pub fmt: PhantomData<FMT>,
}
Expand description
A view of mutable image to have pixel format FMT
.
Fields§
§orig: &'a mut [u8]
§width: u32
§height: u32
§stride: usize
§fmt: PhantomData<FMT>
Trait Implementations§
source§impl<'a, FMT> ImageData<FMT> for ReinterpretedImageMut<'a, FMT>
impl<'a, FMT> ImageData<FMT> for ReinterpretedImageMut<'a, FMT>
source§fn buffer_ref(&self) -> ImageBufferRef<'_, FMT>
fn buffer_ref(&self) -> ImageBufferRef<'_, FMT>
Returns the image buffer specified by pixel format
F
. Read moresource§fn buffer(self) -> ImageBuffer<FMT>
fn buffer(self) -> ImageBuffer<FMT>
Returns the image buffer specified by pixel format
F
. Read moresource§impl<'a, FMT> ImageMutData<FMT> for ReinterpretedImageMut<'a, FMT>
impl<'a, FMT> ImageMutData<FMT> for ReinterpretedImageMut<'a, FMT>
source§fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, FMT>
fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, FMT>
Returns the image mutable buffer specified by pixel format
F
. Read moreAuto Trait Implementations§
impl<'a, FMT> Freeze for ReinterpretedImageMut<'a, FMT>
impl<'a, FMT> RefUnwindSafe for ReinterpretedImageMut<'a, FMT>where
FMT: RefUnwindSafe,
impl<'a, FMT> Send for ReinterpretedImageMut<'a, FMT>where
FMT: Send,
impl<'a, FMT> Sync for ReinterpretedImageMut<'a, FMT>where
FMT: Sync,
impl<'a, FMT> Unpin for ReinterpretedImageMut<'a, FMT>where
FMT: Unpin,
impl<'a, FMT> !UnwindSafe for ReinterpretedImageMut<'a, FMT>
Blanket Implementations§
source§impl<S, F> AsImageData<F> for Swhere
S: ImageData<F>,
impl<S, F> AsImageData<F> for Swhere
S: ImageData<F>,
fn as_image_data(&self) -> &dyn ImageData<F>
source§impl<S, F> AsImageStride<F> for Swhere
S: ImageStride<F>,
impl<S, F> AsImageStride<F> for Swhere
S: ImageStride<F>,
fn as_image_stride(&self) -> &dyn ImageStride<F>
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