Trait ocipkg::image::PlatformEx

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

Extension of Platform

Required Methods§

source

fn from_cfg_macro() -> Self

Create Platform using std::cfg macro

source

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PlatformEx for Platform

source§

fn from_cfg_macro() -> Self

source§

fn from_target_triple(target_triple: &str) -> Result<Self>

Implementors§