pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new_normal(function: NormalFunction, metadata: &FunctionMetadata) -> Self
pub fn new_native(function: NativeFunction, metadata: &FunctionMetadata) -> Self
pub fn call_native_func( &self, interpreter: &mut Interpreter, this_object_with_super_level: Option<(LangObjectRef, usize)>, argument_list: Vec<DataObjectRef>, combined_argument_list: Vec<DataObjectRef>, ) -> OptionDataObjectRef
pub fn is_equals( &self, other: &Self, interpreter: &mut Interpreter, pos: CodePosition, ) -> bool
pub fn is_strict_equals( &self, other: &Self, interpreter: &mut Interpreter, pos: CodePosition, ) -> bool
pub fn to_function_signature_string(&self) -> String
pub fn function(&self) -> &FunctionData
pub fn parameter_list(&self) -> &[Parameter]
pub fn var_args_parameter(&self) -> Option<(usize, VarArgsType)>
pub fn return_value_type_constraint(&self) -> Option<&DataTypeConstraint>
pub fn combinator_function_call_count(&self) -> Option<usize>
pub fn combinator_function_provided_arguments(&self) -> &[DataObjectRef]
pub fn function_name(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Function
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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