pub struct TopologyArena {
pub wire_solid_id: u64,
pub genus: i64,
pub vertices: SlotMap<VertexId, ArenaVertex>,
pub edges: SlotMap<EdgeId, ArenaEdge>,
pub coedges: SlotMap<CoedgeId, ArenaCoedge>,
pub loops: SlotMap<LoopId, ArenaLoop>,
pub faces: SlotMap<FaceId, ArenaFace>,
pub shells: SlotMap<ShellId, ArenaShell>,
}Expand description
Type-safe mutable topology used inside the kernel. The JSON/WASM record model remains the stable wire format; conversion happens at that boundary.
Fields§
§wire_solid_id: u64§genus: i64§vertices: SlotMap<VertexId, ArenaVertex>§edges: SlotMap<EdgeId, ArenaEdge>§coedges: SlotMap<CoedgeId, ArenaCoedge>§loops: SlotMap<LoopId, ArenaLoop>§faces: SlotMap<FaceId, ArenaFace>§shells: SlotMap<ShellId, ArenaShell>Implementations§
Trait Implementations§
Source§impl Clone for TopologyArena
impl Clone for TopologyArena
Source§fn clone(&self) -> TopologyArena
fn clone(&self) -> TopologyArena
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TopologyArena
impl !Sync for TopologyArena
impl Forget for TopologyArena
impl Freeze for TopologyArenawhere
*const u8 is !null: Freeze,
PhantomData<Slot<ArenaVertex>>: Freeze,
PhantomData<fn(VertexId) -> VertexId>: Freeze,
PhantomData<Slot<ArenaEdge>>: Freeze,
PhantomData<fn(EdgeId) -> EdgeId>: Freeze,
PhantomData<Slot<ArenaCoedge>>: Freeze,
PhantomData<fn(CoedgeId) -> CoedgeId>: Freeze,
PhantomData<Slot<ArenaLoop>>: Freeze,
PhantomData<fn(LoopId) -> LoopId>: Freeze,
PhantomData<Slot<ArenaFace>>: Freeze,
PhantomData<fn(FaceId) -> FaceId>: Freeze,
PhantomData<Slot<ArenaShell>>: Freeze,
PhantomData<fn(ShellId) -> ShellId>: Freeze,
impl Move for TopologyArena
impl Send for TopologyArenawhere
RawVecInner: Send,
Cell<bool>: Send,
NonZero<u32>: Send,
BoxRaw<[(f64, Vec3)]>: Send,
BoxRaw<[SeedBlock]>: Send,
Arc<[f64]>: Send,
Arc<[Vec3]>: Send,
Arc<[CellBox]>: Send,
Arc<[CellTreeNode]>: Send,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: Send,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: Send,
Arc<SurfacePatches>: Send,
impl Unpin for TopologyArenawhere
*const u8 is !null: Unpin,
NonZero<u32>: Unpin,
Box<[(f64, Vec3)]>: Unpin,
Box<[SeedBlock]>: Unpin,
Arc<[f64]>: Unpin,
Arc<[Vec3]>: Unpin,
Arc<[CellBox]>: Unpin,
Arc<[CellTreeNode]>: Unpin,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: Unpin,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: Unpin,
Arc<SurfacePatches>: Unpin,
impl UnsafeUnpin for TopologyArenawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Slot<ArenaVertex>>: UnsafeUnpin,
PhantomData<fn(VertexId) -> VertexId>: UnsafeUnpin,
PhantomData<Slot<ArenaEdge>>: UnsafeUnpin,
PhantomData<fn(EdgeId) -> EdgeId>: UnsafeUnpin,
PhantomData<Slot<ArenaCoedge>>: UnsafeUnpin,
PhantomData<fn(CoedgeId) -> CoedgeId>: UnsafeUnpin,
PhantomData<Slot<ArenaLoop>>: UnsafeUnpin,
PhantomData<fn(LoopId) -> LoopId>: UnsafeUnpin,
PhantomData<Slot<ArenaFace>>: UnsafeUnpin,
PhantomData<fn(FaceId) -> FaceId>: UnsafeUnpin,
PhantomData<Slot<ArenaShell>>: UnsafeUnpin,
PhantomData<fn(ShellId) -> ShellId>: UnsafeUnpin,
impl UnwindSafe for TopologyArenawhere
RawVecInner: UnwindSafe,
NonZero<u32>: UnwindSafe,
BoxRaw<[(f64, Vec3)]>: UnwindSafe,
BoxRaw<[SeedBlock]>: UnwindSafe,
Arc<[f64]>: UnwindSafe,
Arc<[Vec3]>: UnwindSafe,
Arc<[CellBox]>: UnwindSafe,
Arc<[CellTreeNode]>: UnwindSafe,
Arc<Mutex<HashMap<(u32, u32), Vec3, FxBuildHasher>>>: UnwindSafe,
Arc<Mutex<HashMap<usize, Option<CellBox>, FxBuildHasher>>>: UnwindSafe,
Arc<SurfacePatches>: 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