pub struct Target {
pub arch: String,
pub os: String,
pub env: String,
}
Expand description
Split a target string to its components
Because of https://github.com/rust-lang/rust/issues/61558
It uses internally rustc
to validate the string.
Fields§
§arch: String
§os: String
§env: String
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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