Trait geos::ContextInteractions
source · pub trait ContextInteractions {
// Required methods
fn set_context_handle(&mut self, context: ContextHandle);
fn get_context_handle(&self) -> &ContextHandle;
// Provided methods
fn get_last_error(&self) -> Option<String> { ... }
fn get_last_notification(&self) -> Option<String> { ... }
}
Required Methods§
fn set_context_handle(&mut self, context: ContextHandle)
fn get_context_handle(&self) -> &ContextHandle
Provided Methods§
sourcefn get_last_error(&self) -> Option<String>
fn get_last_error(&self) -> Option<String>
Gets the last error (if any) from the ContextHandle
held by this object.
§Example
use geos::{ContextInteractions, Geometry};
let mut point_geom = Geometry::new_from_wkt("POINT (2.5 2.5)").expect("Invalid geometry");
// execute some calls on `point_geom`
point_geom.get_last_error();
// This is a shortcut for calling:
point_geom.get_context_handle().get_last_error();
sourcefn get_last_notification(&self) -> Option<String>
fn get_last_notification(&self) -> Option<String>
Gets the last notification (if any) from the ContextHandle
held by this object.
§Example
use geos::{ContextInteractions, Geometry};
let mut point_geom = Geometry::new_from_wkt("POINT (2.5 2.5)").expect("Invalid geometry");
// execute some calls on `point_geom`
point_geom.get_last_notification();
// This is a shortcut for calling:
point_geom.get_context_handle().get_last_notification();