Enum target_tuples::Vendor [−][src]
pub enum Vendor {
Show variants
Unknown,
Apple,
PC,
SCEI,
Freescale,
IBM,
ImaginationTechnologies,
MipsTechnologies,
NVIDIA,
CSR,
Myriad,
AMD,
Mesa,
SUSE,
OpenEmbedded,
WDC,
}Expand description
The Vendor field of a target tuple
Variants
Implementations
Parses the Vendor in a “lossy” manner
This is equivalent to Self::from_str.
Note that an unknown vendor is not considered an error.
Example
use target_tuples::Vendor;
let vendor = Vendor::parse("pc");
assert_eq!(vendor,Vendor::PC);
let vendor2: Vendor = "pc".parse().unwrap();
assert_eq!(vendor,vendor2);Returns the canonical name of the vendor
The canonical name, when passed into [Self::parse`] will yield an equivalent value,
Formatting a Vendor yields this string
Examples
use target_tuples::Vendor; let vendor = Vendor::Apple; assert_eq!(Vendor::parse(vendor.canonical_name()),vendor);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Vendorimpl UnwindSafe for VendorBlanket Implementations
Mutably borrows from an owned value. Read more