Enum target_tuples::Vendor
source · #[repr(u32)]pub enum Vendor {
Show 17 variants
Unknown = 0,
Apple = 1,
PC = 2,
SCEI = 3,
Freescale = 4,
IBM = 5,
ImaginationTechnologies = 6,
MipsTechnologies = 7,
NVIDIA = 8,
CSR = 9,
Myriad = 10,
AMD = 11,
Mesa = 12,
SUSE = 13,
OpenEmbedded = 14,
WDC = 15,
Null = 4_294_967_295,
// some variants omitted
}
Expand description
The Vendor field of a target tuple
Variants§
Unknown = 0
Apple = 1
PC = 2
SCEI = 3
Freescale = 4
IBM = 5
ImaginationTechnologies = 6
MipsTechnologies = 7
NVIDIA = 8
CSR = 9
Myriad = 10
AMD = 11
Mesa = 12
SUSE = 13
OpenEmbedded = 14
WDC = 15
Null = 4_294_967_295
Used for ABI Purposes with lccc
Implementations§
source§impl Vendor
impl Vendor
sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parses the Vendor in a “lossy” manner
This is equivalent to Self::from_str
.
Note that an unknown vendor is not considered an error.
sourcepub fn canonical_name(&self) -> &'static str
pub fn canonical_name(&self) -> &'static str
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
Trait Implementations§
source§impl PartialEq for Vendor
impl PartialEq for Vendor
impl Copy for Vendor
impl Eq for Vendor
impl StructuralEq for Vendor
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnwindSafe for Vendor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more