pub struct RuleOutput<E, P> {
pub effects: Vec<E>,
pub presentation: Vec<P>,
}Expand description
The output of a rule function: game effects to apply + presentation effects.
Fields§
§effects: Vec<E>§presentation: Vec<P>Trait Implementations§
Source§impl<E: Clone, P: Clone> Clone for RuleOutput<E, P>
impl<E: Clone, P: Clone> Clone for RuleOutput<E, P>
Source§fn clone(&self) -> RuleOutput<E, P>
fn clone(&self) -> RuleOutput<E, P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<E, P> Freeze for RuleOutput<E, P>
impl<E, P> RefUnwindSafe for RuleOutput<E, P>where
E: RefUnwindSafe,
P: RefUnwindSafe,
impl<E, P> Send for RuleOutput<E, P>
impl<E, P> Sync for RuleOutput<E, P>
impl<E, P> Unpin for RuleOutput<E, P>
impl<E, P> UnsafeUnpin for RuleOutput<E, P>
impl<E, P> UnwindSafe for RuleOutput<E, P>where
E: UnwindSafe,
P: UnwindSafe,
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