pub struct ScriptBuilder<'a, SE: ScriptExpression>(/* private fields */);
Implementations§
Source§impl<'a, SE: ScriptExpression> ScriptBuilder<'a, SE>
impl<'a, SE: ScriptExpression> ScriptBuilder<'a, SE>
pub fn build(self) -> ScriptHandle<'a, SE>
pub fn expression(self, expression: SE) -> Self
pub fn define_register(self, query: TypeQuery<'a>) -> Self
pub fn drop_register(self, index: usize) -> Self
pub fn push_from_register(self, index: usize) -> Self
pub fn pop_to_register(self, index: usize) -> Self
pub fn move_register(self, from: usize, to: usize) -> Self
pub fn call_function(self, query: FunctionQuery<'a>) -> Self
pub fn branch_scope( self, scope_success: ScriptHandle<'a, SE>, scope_failure: Option<ScriptHandle<'a, SE>>, ) -> Self
pub fn loop_scope(self, scope: ScriptHandle<'a, SE>) -> Self
pub fn push_scope(self, scope: ScriptHandle<'a, SE>) -> Self
pub fn pop_scope(self) -> Self
pub fn continue_scope_conditionally(self) -> Self
Trait Implementations§
Source§impl<'a, SE: ScriptExpression> Default for ScriptBuilder<'a, SE>
impl<'a, SE: ScriptExpression> Default for ScriptBuilder<'a, SE>
Auto Trait Implementations§
impl<'a, SE> Freeze for ScriptBuilder<'a, SE>
impl<'a, SE> RefUnwindSafe for ScriptBuilder<'a, SE>where
SE: RefUnwindSafe,
impl<'a, SE> Send for ScriptBuilder<'a, SE>
impl<'a, SE> Sync for ScriptBuilder<'a, SE>
impl<'a, SE> Unpin for ScriptBuilder<'a, SE>where
SE: Unpin,
impl<'a, SE> UnwindSafe for ScriptBuilder<'a, SE>where
SE: UnwindSafe + RefUnwindSafe,
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