[−][src]Enum gridsim::neumann::NeumannDirection
Variants
Right
UpRight
Up
UpLeft
Left
DownLeft
Down
DownRight
Methods
impl NeumannDirection
[src]
ⓘImportant traits for NeumannDirectionEnumIteratorpub fn iter_variants() -> NeumannDirectionEnumIterator
[src]
ⓘImportant traits for NeumannDirectionEnumIterator
impl NeumannDirection
[src]
Trait Implementations
impl Direction for NeumannDirection
[src]
type Directions = NeumannDirectionEnumIterator
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 chooser_slice(sigmoids: &[f32]) -> Option<(Self, FloatOrd<f32>)>
[src]
fn turn_clockwise(self) -> Self
[src]
fn turn_counterclockwise(self) -> Self
[src]
impl<'a, S, M> TakeMoveDirection<usize, NeumannDirection, M> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = NeumannNeighbors<M>>,
[src]
S: Sim<'a, Move = M, MoveNeighbors = NeumannNeighbors<M>>,
unsafe fn take_move_direction(&self, ix: usize, dir: NeumannDirection) -> M
[src]
impl PartialEq<NeumannDirection> for NeumannDirection
[src]
fn eq(&self, other: &NeumannDirection) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for NeumannDirection
[src]
impl Eq for NeumannDirection
[src]
impl From<usize> for NeumannDirection
[src]
impl Into<usize> for NeumannDirection
[src]
impl Clone for NeumannDirection
[src]
fn clone(&self) -> NeumannDirection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Index<NeumannDirection> for NeumannNeighbors<T>
[src]
impl<T> IndexMut<NeumannDirection> for NeumannNeighbors<T>
[src]
fn index_mut(&mut self, ix: NeumannDirection) -> &mut T
[src]
impl Debug for NeumannDirection
[src]
Auto Trait Implementations
impl Send for NeumannDirection
impl Unpin for NeumannDirection
impl Sync for NeumannDirection
impl UnwindSafe for NeumannDirection
impl RefUnwindSafe for NeumannDirection
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,