enum Side {
TOP,
RIGHT,
BOTTOM,
LEFT,
}
Expand description
Use to track which side of the current plot has the edge being followed when walking the perimeter
Variants§
Implementations§
source§impl Side
impl Side
sourcefn convex_delta(&self) -> Delta
fn convex_delta(&self) -> Delta
Given a facing parallel to the current edge, headed clockwise, the plot forwards and Side::left will be filled if the edge turns round a concave corner.
sourcefn cross_outwards_delta(&self) -> Delta
fn cross_outwards_delta(&self) -> Delta
Given a cell which potentially has an edge on this side, what is the delta to cross that edge, from inside the shape to outside
sourcefn straight_ahead_delta(&self) -> Delta
fn straight_ahead_delta(&self) -> Delta
The facing parallel to this side, that walks the inside of that edge clockwise.
sourcefn turn_clockwise(&self) -> Side
fn turn_clockwise(&self) -> Side
The side clockwise of this one
Trait Implementations§
impl Copy for Side
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnwindSafe for Side
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
Checks if this value is equivalent to the given key. Read more
§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.