Struct platforms::PlatformReq[][src]

pub struct PlatformReq(_);

Platform requirements: glob-like expressions for matching Rust platforms as identified by a "target triple", e.g. i686-apple-darwin.

For a list of all valid platforms, "target triples", see:

https://forge.rust-lang.org/platform-support.html

Platforms can be grouped with simple globbing rules:

  • Start with wildcard: *-gnu
  • End with wildcard: x86_64-*
  • Start and end with wildcard: *windows*

Methods

impl PlatformReq
[src]

Borrow this platform requirement as a string slice

Does this platform requirement match the given platform string?

This matcher accepts a platform "target triple" string ala x86_64-unknown-linux-gnu and matches it against this Platform, using simple glob like rules.

Expand glob expressions into a list of all known matching platforms

Trait Implementations

impl Clone for PlatformReq
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PlatformReq
[src]

Formats the value using the given formatter. Read more

impl Eq for PlatformReq
[src]

impl PartialEq for PlatformReq
[src]

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

This method tests for !=.

impl FromStr for PlatformReq
[src]

The associated error which can be returned from parsing.

Create a new platform requirement. Platforms support glob-like wildcards on the beginning and end, e.g. *windows*.

Must match at least one known Rust platform "target triple" (e.g. x86_64-unknown-linux-gnu) to be considered valid.

Auto Trait Implementations

impl Send for PlatformReq

impl Sync for PlatformReq