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