pub struct ActionWorld { /* private fields */ }Implementations§
Source§impl ActionWorld
impl ActionWorld
pub fn new() -> Self
pub fn add<I, T>(
&mut self,
target: I,
field: impl Into<UntypedField>,
action: impl Action<T>,
) -> ActionBuilder<'_, T>where
I: SubjectId,
T: ThreadSafe,
pub fn remove(&mut self, id: ActionId) -> Option<ActionKey>
pub fn get_action<T: ThreadSafe>(&self, id: ActionId) -> Option<&impl Action<T>>
pub fn get_id<I: SubjectId>(&self, uid: &UId) -> Option<&I>
Trait Implementations§
Source§impl Default for ActionWorld
impl Default for ActionWorld
Source§fn default() -> ActionWorld
fn default() -> ActionWorld
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ActionWorld
impl !RefUnwindSafe for ActionWorld
impl Send for ActionWorld
impl Sync for ActionWorld
impl Unpin for ActionWorld
impl !UnwindSafe for ActionWorld
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: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.