Struct simple_frame::SimpleFrame
source · pub struct SimpleFrame<F> {
pub width: u32,
pub height: u32,
pub stride: u32,
pub fmt: PhantomData<F>,
/* private fields */
}
Fields§
§width: u32
width in pixels
height: u32
height in pixels
stride: u32
number of bytes in an image row
fmt: PhantomData<F>
format of the data
Implementations§
source§impl<F> SimpleFrame<F>where
F: PixelFormat,
impl<F> SimpleFrame<F>where
F: PixelFormat,
source§impl<F> SimpleFrame<F>
impl<F> SimpleFrame<F>
pub fn copy_from<FRAME: ImageStride<F>>(frame: &FRAME) -> SimpleFrame<F>
Trait Implementations§
source§impl<F: Clone> Clone for SimpleFrame<F>
impl<F: Clone> Clone for SimpleFrame<F>
source§fn clone(&self) -> SimpleFrame<F>
fn clone(&self) -> SimpleFrame<F>
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<F> Debug for SimpleFrame<F>
impl<F> Debug for SimpleFrame<F>
source§impl<FRAME, FMT> From<Box<FRAME>> for SimpleFrame<FMT>
impl<FRAME, FMT> From<Box<FRAME>> for SimpleFrame<FMT>
source§fn from(frame: Box<FRAME>) -> SimpleFrame<FMT>
fn from(frame: Box<FRAME>) -> SimpleFrame<FMT>
Converts to this type from the input type.
source§impl<F> ImageData<F> for SimpleFrame<F>
impl<F> ImageData<F> for SimpleFrame<F>
source§fn buffer_ref(&self) -> ImageBufferRef<'_, F>
fn buffer_ref(&self) -> ImageBufferRef<'_, F>
Returns the image buffer specified by pixel format
F
. Read moresource§fn buffer(self) -> ImageBuffer<F>
fn buffer(self) -> ImageBuffer<F>
Returns the image buffer specified by pixel format
F
. Read moresource§impl<F> ImageMutData<F> for SimpleFrame<F>
impl<F> ImageMutData<F> for SimpleFrame<F>
source§fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>
fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>
Returns the image mutable buffer specified by pixel format
F
. Read moreAuto Trait Implementations§
impl<F> Freeze for SimpleFrame<F>
impl<F> RefUnwindSafe for SimpleFrame<F>where
F: RefUnwindSafe,
impl<F> Send for SimpleFrame<F>where
F: Send,
impl<F> Sync for SimpleFrame<F>where
F: Sync,
impl<F> Unpin for SimpleFrame<F>where
F: Unpin,
impl<F> UnwindSafe for SimpleFrame<F>where
F: UnwindSafe,
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