pub struct ExpressionParameters {
pub expression: String,
pub map_no_data: bool,
pub output_band: Option<Box<RasterBandDescriptor>>,
pub output_type: RasterDataType,
}Expand description
ExpressionParameters : ## Types The following describes the types used in the parameters.
Fields§
§expression: StringExpression script Example: \"(A - B) / (A + B)\"
map_no_data: boolShould NO DATA values be mapped with the expression? Otherwise, they are mapped automatically to NO DATA.
output_band: Option<Box<RasterBandDescriptor>>Description about the output
output_type: RasterDataTypeA raster data type for the output
Implementations§
Source§impl ExpressionParameters
impl ExpressionParameters
Sourcepub fn new(
expression: String,
map_no_data: bool,
output_type: RasterDataType,
) -> ExpressionParameters
pub fn new( expression: String, map_no_data: bool, output_type: RasterDataType, ) -> ExpressionParameters
§Types The following describes the types used in the parameters.
Trait Implementations§
Source§impl Clone for ExpressionParameters
impl Clone for ExpressionParameters
Source§fn clone(&self) -> ExpressionParameters
fn clone(&self) -> ExpressionParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpressionParameters
impl Debug for ExpressionParameters
Source§impl Default for ExpressionParameters
impl Default for ExpressionParameters
Source§fn default() -> ExpressionParameters
fn default() -> ExpressionParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExpressionParameters
impl<'de> Deserialize<'de> for ExpressionParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExpressionParameters
impl PartialEq for ExpressionParameters
Source§fn eq(&self, other: &ExpressionParameters) -> bool
fn eq(&self, other: &ExpressionParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExpressionParameters
impl Serialize for ExpressionParameters
impl StructuralPartialEq for ExpressionParameters
Auto Trait Implementations§
impl Freeze for ExpressionParameters
impl RefUnwindSafe for ExpressionParameters
impl Send for ExpressionParameters
impl Sync for ExpressionParameters
impl Unpin for ExpressionParameters
impl UnsafeUnpin for ExpressionParameters
impl UnwindSafe for ExpressionParameters
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