Enum cargo_wix::Platform [] [src]

pub enum Platform {
    X86,
    X64,
}

The different values for the Platform attribute of the Package element.

Variants

The x86 WiX Toolset value.

The x64 WiX Toolset value.

Methods

impl Platform
[src]

[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]

[src]

Formats the value using the given formatter. Read more

impl Clone for Platform
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Platform
[src]

impl PartialEq for Platform
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for Platform
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Platform
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Platform

impl Sync for Platform