互通性
Rust 能充分支援與其他程式語言互通。也就是說,您可以:
- 透過其他語言呼叫 Rust 函式。
- 透過 Rust 呼叫以其他語言編寫的函式。
當您以其他語言呼叫函式時,我們稱之為使用「外部函式介面」,亦稱 FFI (Foreign Function Interface)。
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Rust 能充分支援與其他程式語言互通。也就是說,您可以:
當您以其他語言呼叫函式時,我們稱之為使用「外部函式介面」,亦稱 FFI (Foreign Function Interface)。