Enum cpp_to_rust_common::target::Condition [] [src]

pub enum Condition {
    Arch(Arch),
    OS(OS),
    Family(Family),
    Env(Env),
    PointerWidth(PointerWidth),
    Endian(Endian),
    And(Vec<Condition>),
    Or(Vec<Condition>),
    Not(Box<Condition>),
    True,
    False,
}

Condition on properties of the target. Simple conditions are considered true if the property of the current platform is the same as the associated value of the enum. For example, Condition::OS(OS::Windows) will be true on Windows and false otherwise. And, Or and Not variants provide logical operations on nested conditions. True and False variants provide conditions which are always true and false, respectively.

Variants

Methods

impl Condition
[src]

Evaluate the condition for target. Returns true if target matches the condition.

Construct a condition opposite to self.

Trait Implementations

impl Debug for Condition
[src]

Formats the value using the given formatter.

impl Clone for Condition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Condition
[src]

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

This method tests for !=.

impl Eq for Condition
[src]