pub struct ChainedPatch {
pub sides: [Vec<PatchSide>; 4],
}Expand description
A patch of the network whose sides may each be a chain of curves.
The sides are walked as a PatchDef’s, each side’s curves in walking
order, each meeting the next at a junction, where a curve of a
neighbouring patch may end (a T-junction). An empty side is missing, as
a PatchDef’s None.
A side split into several curves has its patch cross the same
junctions from the side opposite: that side is split too, or is one
curve, which then carries the junctions to the patch beyond it. A curve
so carrying junctions may itself be one of the curves of a split side
(nested junctions): every side then crosses as many strips as the
curves along it carry between them, and the side opposite as many, the
i-th along one direction opposite the i-th along it on the other.
Fields§
§sides: [Vec<PatchSide>; 4]The sides, in walking order, each its curves in walking order.
Implementations§
Trait Implementations§
Source§impl Clone for ChainedPatch
impl Clone for ChainedPatch
Source§impl Debug for ChainedPatch
impl Debug for ChainedPatch
impl Eq for ChainedPatch
Source§impl From<PatchDef> for ChainedPatch
impl From<PatchDef> for ChainedPatch
Source§impl PartialEq for ChainedPatch
impl PartialEq for ChainedPatch
impl StructuralPartialEq for ChainedPatch
Auto Trait Implementations§
impl Freeze for ChainedPatch
impl RefUnwindSafe for ChainedPatch
impl Send for ChainedPatch
impl Sync for ChainedPatch
impl Unpin for ChainedPatch
impl UnsafeUnpin for ChainedPatch
impl UnwindSafe for ChainedPatch
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
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
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.