Struct If
pub struct If {
pub(crate) condition: Expr,
pub(crate) then_stmts: Statements,
pub(crate) else_stmts: Statements,
}Fields§
§condition: Expr§then_stmts: Statements§else_stmts: StatementsImplementations§
§impl If
impl If
async fn execute(&self, ctx: &mut ScriptCtx<'_>) -> ControlFlow
fn check_signature( &self, registry: &Core, input_builder: &mut FieldsSigBuilder, output_builder: &mut ObjectSignatureBuilder, ) -> Result<ObjectSignature>
Auto Trait Implementations§
impl Freeze for If
impl RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl UnwindSafe for If
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