pub struct FunctionPointerObject { /* private fields */ }
Implementations§
Source§impl FunctionPointerObject
impl FunctionPointerObject
pub fn create_function_pointer_objects_from_native_functions( functions: Vec<(FunctionMetadata, Function)>, ) -> HashMap<Box<str>, Self>
pub fn new(metadata: &FunctionMetadata, func: Function) -> Self
pub fn new_with_function_name(function_name: &str, func: Function) -> Self
pub fn new_with_functions( this_object: OptionLangObjectRef, functions: &[InternalFunction], metadata: &FunctionMetadata, ) -> Result<Self, DataTypeConstraintError>
pub fn copy_with_function_name(&self, function_name: &str) -> Self
pub fn copy_with_function_info(&self, function_info: &str) -> Self
pub fn copy_with_linker(&self, linker_function: bool) -> Self
pub fn copy_with_deprecation_info(&self, deprecated: DeprecationInfo) -> Self
pub fn copy_with_functions(&self, functions: &[InternalFunction]) -> Self
pub fn copy_with_added_function(&self, function: InternalFunction) -> Self
pub fn copy_with_added_functions(&self, function_pointer_object: &Self) -> Self
pub fn copy_with_mapped_functions( &self, mapper: impl FnMut(&InternalFunction) -> InternalFunction, ) -> Self
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 this_object(&self) -> Option<&LangObjectRef>
pub fn function_name(&self) -> Option<&str>
pub fn function_info(&self) -> Option<&str>
pub fn linker_function(&self) -> bool
pub fn deprecated(&self) -> Option<&DeprecationInfo>
pub fn functions(&self) -> &[InternalFunction]
pub fn get_function(&self, index: usize) -> Option<&InternalFunction>
pub fn get_overloaded_function_count(&self) -> usize
Trait Implementations§
Source§impl Clone for FunctionPointerObject
impl Clone for FunctionPointerObject
Source§fn clone(&self) -> FunctionPointerObject
fn clone(&self) -> FunctionPointerObject
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 FunctionPointerObject
impl Debug for FunctionPointerObject
Source§impl Display for FunctionPointerObject
impl Display for FunctionPointerObject
Source§impl Drop for FunctionPointerObject
impl Drop for FunctionPointerObject
Source§impl From<(&FunctionMetadata, Function)> for FunctionPointerObject
impl From<(&FunctionMetadata, Function)> for FunctionPointerObject
Source§fn from((metadata, func): (&FunctionMetadata, Function)) -> Self
fn from((metadata, func): (&FunctionMetadata, Function)) -> Self
Converts to this type from the input type.
Source§impl From<(FunctionMetadata, Function)> for FunctionPointerObject
impl From<(FunctionMetadata, Function)> for FunctionPointerObject
Source§fn from((metadata, func): (FunctionMetadata, Function)) -> Self
fn from((metadata, func): (FunctionMetadata, Function)) -> Self
Converts to this type from the input type.
Source§impl Trace for FunctionPointerObject
impl Trace for FunctionPointerObject
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs
Finalize::finalize()
on this object and all
contained subobjectsAuto Trait Implementations§
impl !Freeze for FunctionPointerObject
impl !RefUnwindSafe for FunctionPointerObject
impl !Send for FunctionPointerObject
impl !Sync for FunctionPointerObject
impl Unpin for FunctionPointerObject
impl !UnwindSafe for FunctionPointerObject
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