pub struct FunctionMapper { /* private fields */ }Expand description
函数映射器
Implementations§
Source§impl FunctionMapper
impl FunctionMapper
Sourcepub fn from_config(config: &GaiaSettings) -> Result<Self>
pub fn from_config(config: &GaiaSettings) -> Result<Self>
从配置创建函数映射器
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, )
添加函数映射
Sourcepub fn map_function(
&self,
target: &CompilationTarget,
function_name: &str,
) -> Option<&str>
pub fn map_function( &self, target: &CompilationTarget, function_name: &str, ) -> Option<&str>
映射函数名
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 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