pub struct ImagePixels(pub Arc<Vec<u8>>);Expand description
Shared image pixels headed for the compositor’s texture cache. The
newtype keeps CanvasFrameItem’s derives sane: Debug prints the length
(never megabytes of bytes), equality compares Arc identity — the
content-derived key is what real image equality is judged by.
Tuple Fields§
§0: Arc<Vec<u8>>Trait Implementations§
Source§impl Clone for ImagePixels
impl Clone for ImagePixels
Source§fn clone(&self) -> ImagePixels
fn clone(&self) -> ImagePixels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImagePixels
impl Debug for ImagePixels
Auto Trait Implementations§
impl Freeze for ImagePixels
impl RefUnwindSafe for ImagePixels
impl Send for ImagePixels
impl Sync for ImagePixels
impl Unpin for ImagePixels
impl UnsafeUnpin for ImagePixels
impl UnwindSafe for ImagePixels
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