pub struct ImageBuffer { /* private fields */ }Expand description
Decoded RGBA8 image buffer rendered uniformly by software and hardware backends.
Implementations§
Source§impl ImageBuffer
Helper operations for ImageBuffer and InputNodeState.
impl ImageBuffer
Helper operations for ImageBuffer and InputNodeState.
Sourcepub fn new<ParamValue>(
width: u32,
height: u32,
pixels: ParamValue,
) -> ImageBuffer
pub fn new<ParamValue>( width: u32, height: u32, pixels: ParamValue, ) -> ImageBuffer
Sourcepub fn get_pixels(&self) -> &[u8] ⓘ
pub fn get_pixels(&self) -> &[u8] ⓘ
Sourcepub fn pixels_slice(&self) -> &[u8] ⓘ
pub fn pixels_slice(&self) -> &[u8] ⓘ
Sourcepub fn pixels_arc(&self) -> &Arc<[u8]> ⓘ
pub fn pixels_arc(&self) -> &Arc<[u8]> ⓘ
Trait Implementations§
Source§impl Clone for ImageBuffer
impl Clone for ImageBuffer
Source§fn clone(&self) -> ImageBuffer
fn clone(&self) -> ImageBuffer
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 ImageBuffer
impl Debug for ImageBuffer
Source§impl Default for ImageBuffer
impl Default for ImageBuffer
Source§fn default() -> ImageBuffer
fn default() -> ImageBuffer
Returns the “default value” for a type. Read more
impl Eq for ImageBuffer
Reflexive equality marker for ImageBuffer.
Source§impl PartialEq for ImageBuffer
Value equality for ImageBuffer with O(1) identity and shared-storage fast paths.
impl PartialEq for ImageBuffer
Value equality for ImageBuffer with O(1) identity and shared-storage fast paths.
Source§fn eq(&self, other: &ImageBuffer) -> bool
fn eq(&self, other: &ImageBuffer) -> bool
Auto Trait Implementations§
impl Forget for ImageBuffer
impl Freeze for ImageBuffer
impl Move for ImageBuffer
impl RefUnwindSafe for ImageBuffer
impl Send for ImageBuffer
impl Sync for ImageBuffer
impl Unpin for ImageBuffer
impl UnsafeUnpin for ImageBuffer
impl UnwindSafe for ImageBuffer
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