pub struct BandRef<'a> { /* private fields */ }Expand description
A borrowed reference to a single band within a MultiBandBuffer.
Implementations§
Source§impl<'a> BandRef<'a>
impl<'a> BandRef<'a>
Sourcepub fn gdal_index(&self) -> u32
pub fn gdal_index(&self) -> u32
Returns the 1-based band index (GDAL convention).
Sourcepub fn buffer(&self) -> &'a RasterBuffer
pub fn buffer(&self) -> &'a RasterBuffer
Returns the band’s pixel buffer.
Sourcepub fn color(&self) -> ColorInterpretation
pub fn color(&self) -> ColorInterpretation
Returns the color interpretation.
Sourcepub fn nodata(&self) -> NoDataValue
pub fn nodata(&self) -> NoDataValue
Returns the effective nodata value (override or buffer default).
Trait Implementations§
impl<'a> Copy for BandRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BandRef<'a>
impl<'a> RefUnwindSafe for BandRef<'a>
impl<'a> Send for BandRef<'a>
impl<'a> Sync for BandRef<'a>
impl<'a> Unpin for BandRef<'a>
impl<'a> UnsafeUnpin for BandRef<'a>
impl<'a> UnwindSafe for BandRef<'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