Trait geos::ContextInteractions
source · [−]pub trait ContextInteractions<'a> {
fn set_context_handle(&mut self, context: ContextHandle<'a>);
fn get_context_handle(&self) -> &ContextHandle<'a>;
fn get_last_error(&self) -> Option<String> { ... }
fn get_last_notification(&self) -> Option<String> { ... }
}
Required methods
fn set_context_handle(&mut self, context: ContextHandle<'a>)
fn get_context_handle(&self) -> &ContextHandle<'a>
Provided methods
fn 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();
fn 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();