Platform

Trait Platform 

Source
pub trait Platform: Debug {
    // Required methods
    fn setup_env(&self, project: &Project, setup_args: &SetupArgs) -> Result<()>;
    fn id(&self) -> String;
    fn is_compatible_with(&self, device: &dyn Device) -> bool;
    fn is_host(&self) -> bool;
    fn rustc_triple(&self) -> &str;
    fn strip(&self, build: &mut Build) -> Result<()>;
    fn sysroot(&self) -> Result<Option<PathBuf>>;
}

Required Methods§

Source

fn setup_env(&self, project: &Project, setup_args: &SetupArgs) -> Result<()>

Source

fn id(&self) -> String

Source

fn is_compatible_with(&self, device: &dyn Device) -> bool

Source

fn is_host(&self) -> bool

Source

fn rustc_triple(&self) -> &str

Source

fn strip(&self, build: &mut Build) -> Result<()>

Source

fn sysroot(&self) -> Result<Option<PathBuf>>

Trait Implementations§

Source§

impl Display for dyn Platform

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§