Skip to main content

Target

Trait Target 

Source
pub trait Target: Sized {
    // Provided method
    fn target_cpu(&self) -> Option<String> { ... }
}
Expand description

A compilation target (e.g. a GPU architecture).

Provided Methods§

Source

fn target_cpu(&self) -> Option<String>

The -Ctarget-cpu-style string identifying this target, if applicable.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§