pub struct FrameMut<'img, Fmt: ColorFmt, Img: Image<Fmt> + ?Sized>(/* private fields */);Expand description
A mutable reference to a specific frame of an image.
Implementations§
Source§impl<'img, Fmt: ColorFmt, Img: Image<Fmt> + ?Sized> FrameMut<'img, Fmt, Img>
impl<'img, Fmt: ColorFmt, Img: Image<Fmt> + ?Sized> FrameMut<'img, Fmt, Img>
Sourcepub fn new(img: &'img mut Img, frame_idx: usize) -> Self
pub fn new(img: &'img mut Img, frame_idx: usize) -> Self
Creates a reference to img’s frame_idxth frame.
img.frame_mut(frame_idx) may be more concise, if it’s available.
Sourcepub fn image_mut(&'img mut self) -> &'img mut Img
pub fn image_mut(&'img mut self) -> &'img mut Img
Retrieves a mutable reference to the image that this frame is part of.
Trait Implementations§
Source§impl<'img, Fmt: Debug + ColorFmt, Img: Debug + Image<Fmt> + ?Sized> Debug for FrameMut<'img, Fmt, Img>
impl<'img, Fmt: Debug + ColorFmt, Img: Debug + Image<Fmt> + ?Sized> Debug for FrameMut<'img, Fmt, Img>
Auto Trait Implementations§
impl<'img, Fmt, Img> Freeze for FrameMut<'img, Fmt, Img>where
Img: ?Sized,
impl<'img, Fmt, Img> RefUnwindSafe for FrameMut<'img, Fmt, Img>
impl<'img, Fmt, Img> Send for FrameMut<'img, Fmt, Img>
impl<'img, Fmt, Img> Sync for FrameMut<'img, Fmt, Img>
impl<'img, Fmt, Img> Unpin for FrameMut<'img, Fmt, Img>
impl<'img, Fmt, Img> !UnwindSafe for FrameMut<'img, Fmt, Img>
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