pub struct BandInfo {
pub number: usize,
pub description: String,
pub metadata: HashMap<String, String>,
pub unit: String,
pub scale: f64,
pub offset: f64,
pub nodata: Option<f64>,
}Available on crate feature
encoder only.Expand description
One band’s default-domain metadata plus its description, the two things
gdalinfo -json reports that record matching reads.
Fields§
§number: usize§description: String§metadata: HashMap<String, String>§unit: StringThe band’s unit string, what gdalinfo -json reports as unit.
scale: f64§offset: f64§nodata: Option<f64>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for BandInfo
impl Freeze for BandInfo
impl Move for BandInfo
impl RefUnwindSafe for BandInfo
impl Send for BandInfo
impl Sync for BandInfo
impl Unpin for BandInfo
impl UnsafeUnpin for BandInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for BandInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more