pub struct BandContext<'a> { /* private fields */ }Expand description
Variable context for band references
Implementations§
Source§impl<'a> BandContext<'a>
impl<'a> BandContext<'a>
Sourcepub fn new(bands: &'a [RasterBuffer]) -> Self
pub fn new(bands: &'a [RasterBuffer]) -> Self
Creates a new band context
Sourcepub fn get_band(&self, index: usize) -> Result<&RasterBuffer>
pub fn get_band(&self, index: usize) -> Result<&RasterBuffer>
Gets a band by index (1-based)
Sourcepub fn is_valid_band(&self, index: usize) -> bool
pub fn is_valid_band(&self, index: usize) -> bool
Checks if a band index is valid
Sourcepub fn all_bands(&self) -> &[RasterBuffer]
pub fn all_bands(&self) -> &[RasterBuffer]
Gets all bands
Trait Implementations§
Source§impl<'a> Clone for BandContext<'a>
impl<'a> Clone for BandContext<'a>
Source§fn clone(&self) -> BandContext<'a>
fn clone(&self) -> BandContext<'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 moreAuto Trait Implementations§
impl<'a> Freeze for BandContext<'a>
impl<'a> RefUnwindSafe for BandContext<'a>
impl<'a> Send for BandContext<'a>
impl<'a> Sync for BandContext<'a>
impl<'a> Unpin for BandContext<'a>
impl<'a> UnsafeUnpin for BandContext<'a>
impl<'a> UnwindSafe for BandContext<'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