pub struct PatchDef {
pub sides: [Option<PatchSide>; 4],
}Expand description
A patch of the network: its four sides, walked round it.
Side 0 runs along u at v = 0, side 1 up v at u = 1, side 2 back
along u at v = 1, side 3 back down v at u = 0, so the walk turns
counter-clockwise seen from the side the patch’s normal S_u × S_v
faces. Two patches sharing a curve walk it in opposite directions, as
the faces of a shell do. One side may be missing: a three-sided patch,
that side shrunk to the point where its neighbours meet.
Fields§
§sides: [Option<PatchSide>; 4]The sides, in walking order.
Implementations§
Trait Implementations§
impl Copy for PatchDef
impl Eq for PatchDef
Source§impl From<PatchDef> for ChainedPatch
impl From<PatchDef> for ChainedPatch
impl StructuralPartialEq for PatchDef
Auto Trait Implementations§
impl Freeze for PatchDef
impl RefUnwindSafe for PatchDef
impl Send for PatchDef
impl Sync for PatchDef
impl Unpin for PatchDef
impl UnsafeUnpin for PatchDef
impl UnwindSafe for PatchDef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Scalar for T
§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.