Struct gdal::version::VersionInfo
source · pub struct VersionInfo;
Expand description
Convenience functions for the various pre-defined queryable properties of GDAL version information.
See module documentation for examples.
Implementations§
source§impl VersionInfo
impl VersionInfo
sourcepub fn version_summary() -> String
pub fn version_summary() -> String
Returns one line version message suitable for use in response to version requests. i.e. “GDAL 1.1.7, released 2002/04/16”
sourcepub fn version_num() -> String
pub fn version_num() -> String
Returns GDAL_VERSION_NUM
formatted as a string. i.e. “1170”
sourcepub fn release_date() -> String
pub fn release_date() -> String
Returns GDAL_RELEASE_DATE
formatted as a string. i.e. “20020416“
sourcepub fn release_name() -> String
pub fn release_name() -> String
Returns the GDAL_RELEASE_NAME
. ie. “1.1.7”
sourcepub fn license() -> String
pub fn license() -> String
Returns the content of the LICENSE.TXT
file from the GDAL_DATA
directory.
sourcepub fn build_info() -> HashMap<String, String>
pub fn build_info() -> HashMap<String, String>
Get a dictionary of GDAL build configuration options, such as GEOS_VERSION
and
OGR_ENABLED
.
sourcepub fn version_report() -> String
pub fn version_report() -> String
Render all available version and build details in a multiline, debug string
Auto Trait Implementations§
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
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