pub struct BuiltinFunction {
pub name: &'static str,
pub description: &'static str,
pub category: &'static str,
pub doc: &'static str,
pub examples: &'static str,
pub param_types: Vec<Type>,
pub return_type: Type,
pub implementation: fn(&[Value]) -> Result<Value, String>,
pub accel_tags: &'static [AccelTag],
pub is_sink: bool,
}Expand description
Simple builtin function definition using the unified type system
Fields§
§name: &'static str§description: &'static str§category: &'static str§doc: &'static str§examples: &'static str§param_types: Vec<Type>§return_type: Type§implementation: fn(&[Value]) -> Result<Value, String>§is_sink: boolImplementations§
Trait Implementations§
Source§impl Clone for BuiltinFunction
impl Clone for BuiltinFunction
Source§fn clone(&self) -> BuiltinFunction
fn clone(&self) -> BuiltinFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuiltinFunction
impl Debug for BuiltinFunction
impl Collect for BuiltinFunction
Auto Trait Implementations§
impl Freeze for BuiltinFunction
impl RefUnwindSafe for BuiltinFunction
impl Send for BuiltinFunction
impl Sync for BuiltinFunction
impl Unpin for BuiltinFunction
impl UnwindSafe for BuiltinFunction
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