pub struct Triple;Implementations§
Source§impl Triple
impl Triple
Sourcepub fn target_to_clang_target(target: &str) -> &str
pub fn target_to_clang_target(target: &str) -> &str
Convert rust target to clang compatible target.
https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/BinaryFormat/MachO.def#L123-L138
Note: visionos is still called xros in clang, though it’s visionos in Xcode and rust.
Auto Trait Implementations§
impl Freeze for Triple
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnwindSafe for Triple
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