pub struct ArcCanvas { /* private fields */ }
Expand description
An image buffer that can be shared across threads..
Implementations§
Source§impl ArcCanvas
impl ArcCanvas
pub fn new(layout: CanvasLayout) -> Self
Sourcepub fn plane(&self, idx: u8) -> Option<BytePlaneAtomics<'_>>
pub fn plane(&self, idx: u8) -> Option<BytePlaneAtomics<'_>>
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 ArcCanvas
impl RefUnwindSafe for ArcCanvas
impl Send for ArcCanvas
impl Sync for ArcCanvas
impl Unpin for ArcCanvas
impl UnwindSafe for ArcCanvas
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