pub struct BuiltinFunction {
pub name: &'static str,
pub description: &'static str,
pub signature: BuiltinSignature,
pub param_names: &'static [&'static str],
}Fields§
§name: &'static str§description: &'static str§signature: BuiltinSignature§param_names: &'static [&'static str]Implementations§
Source§impl BuiltinFunction
impl BuiltinFunction
pub fn to_signature(&self, span: Span) -> FunctionSignature
pub fn parameters(&self) -> Vec<(&'static str, &TypeExpr)>
pub fn return_type(&self) -> &TypeExpr
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 moreAuto 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