Skip to main content

StepCtx

Struct StepCtx 

Source
pub struct StepCtx<'a, A: AgentModel + ?Sized> {
    pub field: <A::Field as FieldLayer>::Read<'a>,
    pub index: &'a A::Index,
    pub params: &'a A::Params,
    pub extent: Extent,
}
Expand description

Context an agent kernel reads besides its own lanes.

Fields§

§field: <A::Field as FieldLayer>::Read<'a>

Field layer, as an agent kernel reads it.

§index: &'a A::Index

Neighbour index, rebuilt from the positions before the step.

§params: &'a A::Params

Hot parameters of this tick.

§extent: Extent

World size.

Trait Implementations§

Source§

impl<A: AgentModel + ?Sized> Debug for StepCtx<'_, A>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, A> Freeze for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: Freeze, &'a <A as AgentModel>::Index: Freeze, &'a <A as AgentModel>::Params: Freeze, A: ?Sized,

§

impl<'a, A> RefUnwindSafe for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: RefUnwindSafe, &'a <A as AgentModel>::Index: RefUnwindSafe, &'a <A as AgentModel>::Params: RefUnwindSafe, A: ?Sized,

§

impl<'a, A> Send for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: Send, &'a <A as AgentModel>::Index: Send, &'a <A as AgentModel>::Params: Send, A: ?Sized,

§

impl<'a, A> Sync for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: Sync, &'a <A as AgentModel>::Index: Sync, &'a <A as AgentModel>::Params: Sync, A: ?Sized,

§

impl<'a, A> Unpin for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: Unpin, &'a <A as AgentModel>::Index: Unpin, &'a <A as AgentModel>::Params: Unpin, A: ?Sized,

§

impl<'a, A> UnsafeUnpin for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: UnsafeUnpin, &'a <A as AgentModel>::Index: UnsafeUnpin, &'a <A as AgentModel>::Params: UnsafeUnpin, A: ?Sized,

§

impl<'a, A> UnwindSafe for StepCtx<'a, A>
where <<A as AgentModel>::Field as FieldLayer>::Read<'a>: UnwindSafe, &'a <A as AgentModel>::Index: UnwindSafe, &'a <A as AgentModel>::Params: UnwindSafe, A: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSync for T
where T: Sync,