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§
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>>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".