pub struct Builtin<O: PineOutput> {
pub call: BuiltinFn<O>,
pub signature: BuiltinSignature,
}Expand description
A callable builtin together with the arguments it accepts, so semantic
analysis can reject a bad call without running it. Both come from the same
#[derive(BuiltinFunction)], so they cannot drift apart.
Fields§
§call: BuiltinFn<O>§signature: BuiltinSignatureImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<O> !RefUnwindSafe for Builtin<O>
impl<O> !Send for Builtin<O>
impl<O> !Sync for Builtin<O>
impl<O> !UnwindSafe for Builtin<O>
impl<O> Freeze for Builtin<O>
impl<O> Unpin for Builtin<O>
impl<O> UnsafeUnpin for Builtin<O>
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