pub struct RcCanvas { /* private fields */ }
Expand description
An image buffer that can be shared within a thread.
Implementations§
Source§impl RcCanvas
impl RcCanvas
pub fn new(layout: CanvasLayout) -> Self
Sourcepub fn plane(&self, idx: u8) -> Option<BytePlaneCells<'_>>
pub fn plane(&self, idx: u8) -> Option<BytePlaneCells<'_>>
Get the untyped descriptor of a texel matrix.
Returns None
if the image contains data that can not be described as a single texel
plane, e.g. multiple planes or if the plane is not a matrix.
pub fn to_canvas(&self) -> Canvas
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RcCanvas
impl !RefUnwindSafe for RcCanvas
impl !Send for RcCanvas
impl !Sync for RcCanvas
impl Unpin for RcCanvas
impl !UnwindSafe for RcCanvas
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