Struct image_canvas::canvas::BytePlaneMut
source · [−]pub struct BytePlaneMut<'data> { /* private fields */ }
Expand description
Represents a single matrix like layer of an image.
Created from Canvas::plane_mut
.
Implementations
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more