pub enum GridDirection {
U = 0,
L = 1,
R = 2,
D = 3,
UL = 4,
UR = 5,
DL = 6,
DR = 7,
}Variants§
Implementations§
Trait Implementations§
Source§impl AdjacenciesWithValue<GridDirection> for GridGraph<Adj4>
impl AdjacenciesWithValue<GridDirection> for GridGraph<Adj4>
type AIndex = VIndexWithValue<(usize, usize), GridDirection>
type AIter<'g> = Map<GridAdjacency<'g, Adj4>, fn(((usize, usize), GridDirection)) -> VIndexWithValue<(usize, usize), GridDirection>>
fn adjacencies_with_value(&self, vid: Self::VIndex) -> Self::AIter<'_>
Source§impl AdjacenciesWithValue<GridDirection> for GridGraph<Adj8>
impl AdjacenciesWithValue<GridDirection> for GridGraph<Adj8>
type AIndex = VIndexWithValue<(usize, usize), GridDirection>
type AIter<'g> = Map<GridAdjacency<'g, Adj8>, fn(((usize, usize), GridDirection)) -> VIndexWithValue<(usize, usize), GridDirection>>
fn adjacencies_with_value(&self, vid: Self::VIndex) -> Self::AIter<'_>
Source§impl Clone for GridDirection
impl Clone for GridDirection
Source§fn clone(&self) -> GridDirection
fn clone(&self) -> GridDirection
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 GridDirection
impl Debug for GridDirection
Source§impl Hash for GridDirection
impl Hash for GridDirection
Source§impl Ord for GridDirection
impl Ord for GridDirection
Source§fn cmp(&self, other: &GridDirection) -> Ordering
fn cmp(&self, other: &GridDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GridDirection
impl PartialEq for GridDirection
Source§impl PartialOrd for GridDirection
impl PartialOrd for GridDirection
impl Copy for GridDirection
impl Eq for GridDirection
impl StructuralPartialEq for GridDirection
Auto Trait Implementations§
impl Freeze for GridDirection
impl RefUnwindSafe for GridDirection
impl Send for GridDirection
impl Sync for GridDirection
impl Unpin for GridDirection
impl UnwindSafe for GridDirection
Blanket Implementations§
Source§impl<T> AsTotalOrd for Twhere
T: PartialOrd,
impl<T> AsTotalOrd for Twhere
T: PartialOrd,
fn as_total_ord(&self) -> TotalOrd<&T>
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