pub struct Target {
pub os: &'static str,
pub arch: &'static str,
}Expand description
An OS and CPU, in the names Ghola’s release archives use.
Fields§
§os: &'static str§arch: &'static strImplementations§
Source§impl Target
impl Target
Sourcepub fn from_rust(os: &str, arch: &str) -> Option<Self>
pub fn from_rust(os: &str, arch: &str) -> Option<Self>
The target for Rust’s OS and arch names, when Ghola publishes for it.
Sourcepub fn asset_name(self, version: &str) -> String
pub fn asset_name(self, version: &str) -> String
The release asset for version (without the leading v).
Sourcepub fn binary_name(self) -> &'static str
pub fn binary_name(self) -> &'static str
The binary’s file name in the archive.
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.