pub struct RgbaSliceU8<'a> { /* private fields */ }Expand description
Container for a slice of contiguous [R G B A R G B A ...] data.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for RgbaSliceU8<'a>
impl<'a> Clone for RgbaSliceU8<'a>
Source§fn clone(&self) -> RgbaSliceU8<'a>
fn clone(&self) -> RgbaSliceU8<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RgbaSliceU8<'a>
impl<'a> Debug for RgbaSliceU8<'a>
Source§impl<'a> RGBSource for RgbaSliceU8<'a>
impl<'a> RGBSource for RgbaSliceU8<'a>
Source§fn dimensions(&self) -> (usize, usize)
fn dimensions(&self) -> (usize, usize)
Returns the underlying image size as an
usize tuple (w, h).Source§fn pixel_f32(&self, x: usize, y: usize) -> (f32, f32, f32)
fn pixel_f32(&self, x: usize, y: usize) -> (f32, f32, f32)
Extract the pixel value at the specified location. Pixel values are
expected to be floats in the range
[0, 255] (u8 represented as f32).Source§fn dimensions_i32(&self) -> (i32, i32)
fn dimensions_i32(&self) -> (i32, i32)
Returns the underlying image size as an
i32 tuple (w, h).impl<'a> Copy for RgbaSliceU8<'a>
Auto Trait Implementations§
impl<'a> Freeze for RgbaSliceU8<'a>
impl<'a> RefUnwindSafe for RgbaSliceU8<'a>
impl<'a> Send for RgbaSliceU8<'a>
impl<'a> Sync for RgbaSliceU8<'a>
impl<'a> Unpin for RgbaSliceU8<'a>
impl<'a> UnsafeUnpin for RgbaSliceU8<'a>
impl<'a> UnwindSafe for RgbaSliceU8<'a>
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