Struct edict::system::ActionEncoderState
source · pub struct ActionEncoderState { /* private fields */ }Expand description
FnArgState for ActionEncoder argument.
Trait Implementations§
source§impl Default for ActionEncoderState
impl Default for ActionEncoderState
source§fn default() -> ActionEncoderState
fn default() -> ActionEncoderState
Returns the “default value” for a type. Read more
source§impl FnArgState for ActionEncoderState
impl FnArgState for ActionEncoderState
§type Arg<'a> = ActionEncoder<'a>
type Arg<'a> = ActionEncoder<'a>
Corresponding argument type of the function-system.
source§fn is_local(&self) -> bool
fn is_local(&self) -> bool
Returns
true for local arguments that can be used only for local function-systems. Read moresource§fn world_access(&self) -> Option<Access>
fn world_access(&self) -> Option<Access>
source§fn visit_archetype(&self, _archetype: &Archetype) -> bool
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
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>
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>
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>
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 moresource§unsafe fn flush_unchecked(
&mut self,
_world: NonNull<World>,
queue: &mut dyn ActionBufferQueue,
)
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§
impl Freeze for ActionEncoderState
impl !RefUnwindSafe for ActionEncoderState
impl Send for ActionEncoderState
impl !Sync for ActionEncoderState
impl Unpin for ActionEncoderState
impl !UnwindSafe for ActionEncoderState
Blanket Implementations§
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
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
source§fn from_world(_: &World) -> T
fn from_world(_: &World) -> T
Returns new value created from
World reference.