pub struct FunctionMapper { /* private fields */ }Expand description
Function mapper.
Implementations§
Source§impl FunctionMapper
impl FunctionMapper
Sourcepub fn from_config(config: &GaiaSettings) -> Result<Self>
pub fn from_config(config: &GaiaSettings) -> Result<Self>
Create a function mapper from a configuration.
Sourcepub fn add_mapping(
&mut self,
target: &CompilationTarget,
source_func: &str,
target_func: &str,
)
pub fn add_mapping( &mut self, target: &CompilationTarget, source_func: &str, target_func: &str, )
Add function mapping
Sourcepub fn map_function(
&self,
target: &CompilationTarget,
function_name: &str,
) -> Option<&str>
pub fn map_function( &self, target: &CompilationTarget, function_name: &str, ) -> Option<&str>
Map function name
Trait Implementations§
Source§impl Debug for FunctionMapper
impl Debug for FunctionMapper
Auto Trait Implementations§
impl Freeze for FunctionMapper
impl RefUnwindSafe for FunctionMapper
impl Send for FunctionMapper
impl Sync for FunctionMapper
impl Unpin for FunctionMapper
impl UnsafeUnpin for FunctionMapper
impl UnwindSafe for FunctionMapper
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