pub struct Numbering {
pub edges: Vec<Shape>,
pub faces: Vec<Shape>,
}Expand description
A shape’s edges and faces in the order the file numbers them.
An application that names subshapes by number (the fifth edge, the second face) counts them the way the file is written: depth first from the file’s own shape, each record’s references in the order written, every edge or face counted the first time it is met at a placement. Faces come out in that order from exploring the shape read too, but edges need not: the file keeps a wire’s edges as a set, in whatever order its writer met them, and the wire read is walked end to end.
Fields§
§edges: Vec<Shape>The edges, first numbered first.
faces: Vec<Shape>The faces, first numbered first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Numbering
impl RefUnwindSafe for Numbering
impl Send for Numbering
impl Sync for Numbering
impl Unpin for Numbering
impl UnsafeUnpin for Numbering
impl UnwindSafe for Numbering
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.