pub struct tg_line { /* private fields */ }Expand description
A line is a series of tg_segment that make up a linestring.
Creating
To create a new line use the tg_line_new() function.
struct tg_line *line = tg_line_new(points, npoints);Upcasting
A tg_line can always be safely upcasted to a tg_geom; allowing
it to use any tg_geom_*() function.
struct tg_geom *geom = (struct tg_geom*)line; // Cast to a tg_geom- See
LineFuncs
Auto Trait Implementations§
impl Freeze for tg_line
impl RefUnwindSafe for tg_line
impl Send for tg_line
impl Sync for tg_line
impl Unpin for tg_line
impl UnwindSafe for tg_line
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