Display the following ASCII art exactly as shown. Do not modify spaces or line breaks:
| FFI | Calling C functions | | Low-level abstractions | Implementing Vec, Arc | | Performance | Measured bottleneck with safe alternative too slow |
| ptr deref | Valid, aligned, initialized | | &ptr | + No aliasing violations | | transmute | Same size, valid bit pattern | | extern "C" | Correct signature, ABI | | static mut | Synchronization guaranteed | | impl Send/Sync | Actually thread-safe |
CRITICO: utilizzare per la revisione non sicura del codice Rust e FFI. Trigger su: unsafe, puntatore grezzo, FFI, extern, transmute, *mut, *const, union, #[repr(C)], libc, std::ffi, MaybeUninit, NonNull, commento SAFETY, solidità, comportamento non definito, UB, wrapper sicuro, layout di memoria, bindgen, cbindgen, CString, CStr, 安全抽象,裸指针, 外部函数接口, 内存布局, 不安全代码, FFI 绑定, 未定义行为 Fonte: zhanghandong/rust-skills.