pub struct BytePlaneMut<'data> { /* private fields */ }
Expand description
Represents a single matrix like layer of an image.
Created from Canvas::plane_mut
.
Implementations§
Source§impl<'data> BytePlaneMut<'data>
impl<'data> BytePlaneMut<'data>
pub fn layout(&self) -> &PlaneBytes
pub fn to_owned(&self) -> Plane
pub fn to_canvas(&self) -> Canvas
Sourcepub fn as_texels<T>(self, texel: Texel<T>) -> Option<PlaneRef<'data, T>>
pub fn as_texels<T>(self, texel: Texel<T>) -> Option<PlaneRef<'data, T>>
Upgrade to a view with strongly typed texel type.
Sourcepub fn as_mut_texels<T>(self, texel: Texel<T>) -> Option<PlaneMut<'data, T>>
pub fn as_mut_texels<T>(self, texel: Texel<T>) -> Option<PlaneMut<'data, T>>
Upgrade to a mutable view with strongly typed texel type.
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for BytePlaneMut<'data>
impl<'data> RefUnwindSafe for BytePlaneMut<'data>
impl<'data> Send for BytePlaneMut<'data>
impl<'data> Sync for BytePlaneMut<'data>
impl<'data> Unpin for BytePlaneMut<'data>
impl<'data> !UnwindSafe for BytePlaneMut<'data>
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