Trait dinghy_lib::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§