pub struct tg_ring { /* private fields */ }Expand description
A ring is series of tg_segment which creates a shape that does not
self-intersect and is fully closed, where the start and end points are the
exact same value.
Creating
To create a new ring use the tg_ring_new() function.
struct tg_ring *ring = tg_ring_new(points, npoints);Upcasting
A tg_ring can always be safely upcasted to a tg_poly or tg_geom; allowing
it to use any tg_poly_*() or tg_geom_*() function.
struct tg_poly *poly = (struct tg_poly*)ring; // Cast to a tg_poly
struct tg_geom *geom = (struct tg_geom*)ring; // Cast to a tg_geomAuto Trait Implementations§
impl Freeze for tg_ring
impl RefUnwindSafe for tg_ring
impl Send for tg_ring
impl Sync for tg_ring
impl Unpin for tg_ring
impl UnwindSafe for tg_ring
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