pub struct RegularPlatform {
pub configuration: PlatformConfiguration,
pub id: String,
pub toolchain: ToolchainConfig,
}Fields§
§configuration: PlatformConfiguration§id: String§toolchain: ToolchainConfigImplementations§
Trait Implementations§
Source§impl Debug for RegularPlatform
impl Debug for RegularPlatform
Source§impl Display for RegularPlatform
impl Display for RegularPlatform
Source§impl Platform for RegularPlatform
impl Platform for RegularPlatform
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>>
Auto Trait Implementations§
impl Freeze for RegularPlatform
impl RefUnwindSafe for RegularPlatform
impl Send for RegularPlatform
impl Sync for RegularPlatform
impl Unpin for RegularPlatform
impl UnsafeUnpin for RegularPlatform
impl UnwindSafe for RegularPlatform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more