pub enum GdalError {
Show 18 variants
FfiNulError(NulError),
FfiIntoStringError(IntoStringError),
StrUtf8Error(Utf8Error),
NdarrayShapeError(ShapeError),
CplError {
class: Type,
number: c_int,
msg: String,
},
NullPointer {
method_name: &'static str,
msg: String,
},
CastToF64Error,
OgrError {
err: Type,
method_name: &'static str,
},
UnhandledFieldType {
field_type: Type,
method_name: &'static str,
},
InvalidFieldName {
field_name: String,
method_name: &'static str,
},
InvalidFieldIndex {
index: usize,
method_name: &'static str,
},
UnlinkedGeometry {
method_name: &'static str,
},
InvalidCoordinateRange {
from: String,
to: String,
msg: Option<String>,
},
AxisNotFoundError {
key: String,
method_name: &'static str,
},
UnsupportedGdalGeometryType(Type),
UnlinkMemFile {
file_name: String,
},
BadArgument(String),
UnsupportedMdDataType {
data_type: ExtendedDataTypeClass,
method_name: &'static str,
},
}
Variants
FfiNulError(NulError)
FfiIntoStringError(IntoStringError)
StrUtf8Error(Utf8Error)
NdarrayShapeError(ShapeError)
Available on crate feature
array
only.CplError
NullPointer
CastToF64Error
OgrError
UnhandledFieldType
InvalidFieldName
InvalidFieldIndex
UnlinkedGeometry
Fields
method_name: &'static str
InvalidCoordinateRange
AxisNotFoundError
UnsupportedGdalGeometryType(Type)
UnlinkMemFile
Fields
file_name: String
BadArgument(String)
UnsupportedMdDataType
Trait Implementations
sourceimpl Error for GdalError
impl Error for GdalError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<IntoStringError> for GdalError
impl From<IntoStringError> for GdalError
sourcefn from(source: IntoStringError) -> Self
fn from(source: IntoStringError) -> Self
Converts to this type from the input type.
sourceimpl From<ShapeError> for GdalError
impl From<ShapeError> for GdalError
sourcefn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for GdalError
impl Send for GdalError
impl Sync for GdalError
impl Unpin for GdalError
impl UnwindSafe for GdalError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more