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§
sourcefn from_cfg_macro() -> Self
fn from_cfg_macro() -> Self
sourcefn 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.
Object Safety§
This trait is not object safe.