pub struct InlineExpression(/* private fields */);Expand description
A ready-made ScriptExpression built from a closure.
Saves defining an expression type when a script is assembled in Rust rather than parsed.
Implementations§
Source§impl InlineExpression
impl InlineExpression
Sourcepub fn copied<T>(value: T) -> InlineExpression
pub fn copied<T>(value: T) -> InlineExpression
An expression that pushes a copy of value every time it runs.
Sourcepub fn cloned<T>(value: T) -> InlineExpression
pub fn cloned<T>(value: T) -> InlineExpression
An expression that pushes a clone of value every time it runs.
Trait Implementations§
Source§impl ScriptExpression for InlineExpression
impl ScriptExpression for InlineExpression
Auto Trait Implementations§
impl !RefUnwindSafe for InlineExpression
impl !UnwindSafe for InlineExpression
impl Freeze for InlineExpression
impl Send for InlineExpression
impl Sync for InlineExpression
impl Unpin for InlineExpression
impl UnsafeUnpin for InlineExpression
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