pub enum GdalError {
Show 21 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),
DateError(String),
UnsupportedMdDataType {
data_type: ExtendedDataTypeClass,
method_name: &'static str,
},
IntConversionError(TryFromIntError),
BufferSizeMismatch(usize, (usize, usize)),
}
Variants§
FfiNulError(NulError)
FfiIntoStringError(IntoStringError)
StrUtf8Error(Utf8Error)
NdarrayShapeError(ShapeError)
Available on crate feature
array
only.CplError
NullPointer
CastToF64Error
OgrError
UnhandledFieldType
InvalidFieldName
InvalidFieldIndex
UnlinkedGeometry
InvalidCoordinateRange
AxisNotFoundError
UnsupportedGdalGeometryType(Type)
UnlinkMemFile
BadArgument(String)
DateError(String)
UnsupportedMdDataType
IntConversionError(TryFromIntError)
BufferSizeMismatch(usize, (usize, usize))
Trait Implementations§
source§impl Error for GdalError
impl Error for GdalError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<IntoStringError> for GdalError
impl From<IntoStringError> for GdalError
source§fn from(source: IntoStringError) -> Self
fn from(source: IntoStringError) -> Self
Converts to this type from the input type.
source§impl From<ShapeError> for GdalError
impl From<ShapeError> for GdalError
source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for GdalError
impl From<TryFromIntError> for GdalError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GdalError
impl RefUnwindSafe for GdalError
impl Send for GdalError
impl Sync for GdalError
impl Unpin for GdalError
impl UnwindSafe for GdalError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)