pub struct Event { /* private fields */ }
Implementations§
Source§impl Event
impl Event
pub fn new<S: Into<String>>( name: S, guard: Option<Expr>, effects: Vec<Effect>, position: Option<Position>, ) -> Self
pub fn guard(&self) -> &Option<Expr>
pub fn effects(&self) -> &Vec<Effect>
pub fn resolve_resource( &mut self, map: &HashMap<String, ResourceId>, ) -> Result<(), RlError>
pub fn resolve_state( &mut self, map: &HashMap<String, StateId>, ) -> Result<(), RlError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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