Enum cargo_wix::Platform
[−]
[src]
pub enum Platform { X86, X64, }
The different values for the Platform
attribute of the Package
element.
Variants
X86
The x86
WiX Toolset value.
X64
The x64
WiX Toolset value.
Methods
impl Platform
[src]
pub fn arch(&self) -> &'static str
[src]
Gets the name of the platform as an architecture string as used in Rust toolchains.
This is different from the string used in WiX Source (wxs) files. This is the string
commonly used for the target_arch
conditional compilation attribute. To get the string
recognized in wxs files, use format!("{}", Platform::X86)
.
Example
extern crate cargo_wix; use cargo_wix::Platform; fn main() { assert_eq!(Platform::X86.arch(), "i686"); assert_eq!(Platform::X64.arch(), "x86_64"); }
Trait Implementations
impl Debug for Platform
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Platform
[src]
fn clone(&self) -> Platform
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Platform
[src]
impl PartialEq for Platform
[src]
fn eq(&self, __arg_0: &Platform) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for Platform
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more