pub struct Formatter<T: Write> { /* private fields */ }
Expand description
WKT Formatter that output to Write
A formatter will transform a WKT CRS syntactic tree to a proj4 string
Example:
/// Format a WKT CRS str to a String
use proj4wkt::{Builder, Formatter};
let mut buf = String::new();
Builder::new()
.parse(wkt_string)
.and_then(|node| Formatter::new(unsafe { buf.as_mut_vec() }).format(&node))
.unwrap()
Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Formatter<T>where T: RefUnwindSafe,
impl<T> Send for Formatter<T>where T: Send,
impl<T> Sync for Formatter<T>where T: Sync,
impl<T> Unpin for Formatter<T>where T: Unpin,
impl<T> UnwindSafe for Formatter<T>where T: UnwindSafe,
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