pub enum NeighborPosition {
Left,
Top,
TopRight,
TopLeft,
CoLocated,
BelowLeft,
Median,
}Expand description
Position of a neighboring block.
Variants§
Left
Left neighbor.
Top
Top neighbor.
TopRight
Top-right neighbor.
TopLeft
Top-left neighbor.
CoLocated
Co-located block in reference frame.
BelowLeft
Below-left neighbor.
Median
Median of neighbors.
Trait Implementations§
Source§impl Clone for NeighborPosition
impl Clone for NeighborPosition
Source§fn clone(&self) -> NeighborPosition
fn clone(&self) -> NeighborPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeighborPosition
impl Debug for NeighborPosition
Source§impl PartialEq for NeighborPosition
impl PartialEq for NeighborPosition
impl Copy for NeighborPosition
impl Eq for NeighborPosition
impl StructuralPartialEq for NeighborPosition
Auto Trait Implementations§
impl Freeze for NeighborPosition
impl RefUnwindSafe for NeighborPosition
impl Send for NeighborPosition
impl Sync for NeighborPosition
impl Unpin for NeighborPosition
impl UnsafeUnpin for NeighborPosition
impl UnwindSafe for NeighborPosition
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more