pub struct RasterView<'a, T: Sample> { /* private fields */ }Implementations§
Source§impl<'a, T: Sample> RasterView<'a, T>
impl<'a, T: Sample> RasterView<'a, T>
pub fn new(width: u32, height: u32, depth: u32, data: &'a [T]) -> Result<Self>
pub fn width(self) -> u32
pub fn height(self) -> u32
pub fn depth(self) -> u32
pub fn data(self) -> &'a [T]
pub fn data_type(self) -> DataType
pub fn pixel_count(self) -> Result<usize>
pub fn sample_count(self) -> Result<usize>
pub fn sample(self, pixel: usize, dim: usize) -> T
Trait Implementations§
Source§impl<'a, T: Clone + Sample> Clone for RasterView<'a, T>
impl<'a, T: Clone + Sample> Clone for RasterView<'a, T>
Source§fn clone(&self) -> RasterView<'a, T>
fn clone(&self) -> RasterView<'a, T>
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 moreimpl<'a, T: Copy + Sample> Copy for RasterView<'a, T>
impl<'a, T: Sample> StructuralPartialEq for RasterView<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RasterView<'a, T>
impl<'a, T> RefUnwindSafe for RasterView<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for RasterView<'a, T>where
T: Sync,
impl<'a, T> Sync for RasterView<'a, T>where
T: Sync,
impl<'a, T> Unpin for RasterView<'a, T>
impl<'a, T> UnsafeUnpin for RasterView<'a, T>
impl<'a, T> UnwindSafe for RasterView<'a, T>where
T: RefUnwindSafe,
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