#[repr(C)]
pub struct GDALRasterIOExtraArg { pub nVersion: c_int, pub eResampleAlg: Type, pub pfnProgress: GDALProgressFunc, pub pProgressData: *mut c_void, pub bFloatingPointWindowValidity: c_int, pub dfXOff: f64, pub dfYOff: f64, pub dfXSize: f64, pub dfYSize: f64, }
Expand description

Structure to pass extra arguments to RasterIO() method, must be initialized with INIT_RASTERIO_EXTRA_ARG @since GDAL 2.0

Fields§

§nVersion: c_int

Version of structure (to allow future extensions of the structure)

§eResampleAlg: Type

Resampling algorithm

§pfnProgress: GDALProgressFunc

Progress callback

§pProgressData: *mut c_void

Progress callback user data

§bFloatingPointWindowValidity: c_int

Indicate if dfXOff, dfYOff, dfXSize and dfYSize are set. Mostly reserved from the VRT driver to communicate a more precise source window. Must be such that dfXOff - nXOff < 1.0 and dfYOff - nYOff < 1.0 and nXSize - dfXSize < 1.0 and nYSize - dfYSize < 1.0

§dfXOff: f64

Pixel offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE

§dfYOff: f64

Line offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE

§dfXSize: f64

Width in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE

§dfYSize: f64

Height in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE

Trait Implementations§

source§

impl Clone for GDALRasterIOExtraArg

source§

fn clone(&self) -> GDALRasterIOExtraArg

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GDALRasterIOExtraArg

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for GDALRasterIOExtraArg

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.