pub struct Function {
pub name: String,
pub params: Vec<Parameter>,
pub body: Block,
pub doc: Option<String>,
pub debug: Option<FunctionDebug>,
pub event: Option<String>,
pub event_filter: Option<Expression>,
}Fields§
§name: String§params: Vec<Parameter>§body: Block§doc: Option<String>§debug: Option<FunctionDebug>§event: Option<String>Factorio event name when this function is registered with #[factorio_rs::event(...)].
event_filter: Option<Expression>Optional event filter table passed to script.on_event.
Trait Implementations§
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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