[−][src]Enum gridsim::moore::MooreDirection
Variants
Right
Up
Left
Down
Methods
impl MooreDirection
[src]
ⓘImportant traits for MooreDirectionEnumIteratorpub fn iter_variants() -> MooreDirectionEnumIterator
[src]
ⓘImportant traits for MooreDirectionEnumIterator
impl MooreDirection
[src]
Trait Implementations
impl Direction for MooreDirection
[src]
type Directions = MooreDirectionEnumIterator
fn directions() -> Self::Directions
[src]
fn inv(self) -> Self
[src]
All directions should have an opposite direction on the opposite side of its iterator.
fn total() -> usize
[src]
The total number of directions.
fn chooser(sigmoids: impl Iterator<Item = f32>) -> Option<(Self, FloatOrd<f32>)>
[src]
Must provide an input iterator with length of the number of directions for the Direction
impl which contains sigmoid outputs in the range of (0.0, 1.0). This will choose a direction based on the highest sigmoid output. If none of the values are greater than 0.5, then it will choose no direction. Read more
fn turn_clockwise(self) -> Self
[src]
fn turn_counterclockwise(self) -> Self
[src]
impl<'a, S, M> TakeMoveDirection<usize, MooreDirection, M> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = MooreNeighbors<M>>,
[src]
S: Sim<'a, Move = M, MoveNeighbors = MooreNeighbors<M>>,
unsafe fn take_move_direction(&self, ix: usize, dir: MooreDirection) -> M
[src]
impl PartialEq<MooreDirection> for MooreDirection
[src]
fn eq(&self, other: &MooreDirection) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for MooreDirection
[src]
impl Eq for MooreDirection
[src]
impl From<usize> for MooreDirection
[src]
impl Into<usize> for MooreDirection
[src]
impl Clone for MooreDirection
[src]
fn clone(&self) -> MooreDirection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Index<MooreDirection> for MooreNeighbors<T>
[src]
impl<T> IndexMut<MooreDirection> for MooreNeighbors<T>
[src]
fn index_mut(&mut self, ix: MooreDirection) -> &mut T
[src]
impl Debug for MooreDirection
[src]
Auto Trait Implementations
impl Send for MooreDirection
impl Unpin for MooreDirection
impl Sync for MooreDirection
impl UnwindSafe for MooreDirection
impl RefUnwindSafe for MooreDirection
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,