Struct edict::system::ActionEncoderState

source ·
pub struct ActionEncoderState { /* private fields */ }
Expand description

FnArgState for ActionEncoder argument.

Trait Implementations§

source§

impl Default for ActionEncoderState

source§

fn default() -> ActionEncoderState

Returns the “default value” for a type. Read more
source§

impl FnArgState for ActionEncoderState

§

type Arg<'a> = ActionEncoder<'a>

Corresponding argument type of the function-system.
source§

fn new() -> Self

Constructs the state instance.
source§

fn is_local(&self) -> bool

Returns true for local arguments that can be used only for local function-systems. Read more
source§

fn world_access(&self) -> Option<Access>

Returns access type performed on the entire World. Read more
source§

fn visit_archetype(&self, _archetype: &Archetype) -> bool

Checks if this argument will visit specified archetype. Called only for scheduling purposes.
source§

fn borrows_components_at_runtime(&self) -> bool

Returns true if components accessed by the argument are borrowed at runtime, allowing other args that conflict with it run if they too borrow components at runtime.
source§

fn component_access(&self, _comp: &ComponentInfo) -> Option<Access>

Returns access type to the specified component type this argument may perform. Called only for scheduling purposes.
source§

fn resource_type_access(&self, _ty: TypeId) -> Option<Access>

Returns access type to the specified resource type this argument may perform. Called only for scheduling purposes.
source§

unsafe fn get_unchecked<'a>( &'a mut self, world: NonNull<World>, queue: &mut dyn ActionBufferQueue, ) -> ActionEncoder<'a>

Extracts argument from the world. This method is called with synchronization guarantees provided according to requirements returned by FnArgState::is_local, FnArgState::world_access, FnArgState::visit_archetype, FnArgState::component_access and FnArgState::resource_type_access. Read more
source§

unsafe fn flush_unchecked( &mut self, _world: NonNull<World>, queue: &mut dyn ActionBufferQueue, )

Flushes the argument state. This method is called after system execution, when Arg is already dropped.

Auto Trait Implementations§

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> FromWorld for T
where T: Default,

source§

fn from_world(_: &World) -> T

Returns new value created from World reference.
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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.