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*
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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
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.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more