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

Provided methods

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();

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();

Implementors