pub trait PlatformEx: Sized {
    fn from_cfg_macro() -> Self;
    fn from_target_triple(target_triple: &str) -> Result<Self>;
}
Expand description

Extension of Platform

Required Methods

Create Platform using std::cfg macro

Create Platform from target-triple.

This does not support unnormalized target triple which LLVM may accept, e.g. x86_64, x86_64-linux, and so on.

Implementations on Foreign Types

Implementors