Trait ocipkg::image::PlatformEx
source · [−]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
fn from_cfg_macro() -> Self
fn from_cfg_macro() -> Self
fn from_target_triple(target_triple: &str) -> Result<Self>
fn from_target_triple(target_triple: &str) -> Result<Self>
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.