pub struct Topology {
pub arc_coords: Vec<Arc>,
pub ring_refs: Vec<Vec<u32>>,
pub structure: Vec<Vec<Vec<usize>>>,
}Expand description
The shared-arc topology itself, before any serialization: this is what the container encoder (encode.rs) consumes. Arc coords are f64 and already RDP-simplified.
Fields§
§arc_coords: Vec<Arc>§ring_refs: Vec<Vec<u32>>The signed arc refs of each ring (id << 1 | reversed).
structure: Vec<Vec<Vec<usize>>>The feature → polygon → ring nesting; the innermost values index
into ring_refs.
Implementations§
Auto Trait Implementations§
impl Freeze for Topology
impl RefUnwindSafe for Topology
impl Send for Topology
impl Sync for Topology
impl Unpin for Topology
impl UnsafeUnpin for Topology
impl UnwindSafe for Topology
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