Enum target_tuples::Vendor
source · [−]#[repr(u32)]
pub enum Vendor {
Show 17 variants
Unknown,
Apple,
PC,
SCEI,
Freescale,
IBM,
ImaginationTechnologies,
MipsTechnologies,
NVIDIA,
CSR,
Myriad,
AMD,
Mesa,
SUSE,
OpenEmbedded,
WDC,
Null,
// some variants omitted
}
Expand description
The Vendor field of a target tuple
Variants
Unknown
Apple
PC
SCEI
Freescale
IBM
ImaginationTechnologies
MipsTechnologies
NVIDIA
CSR
Myriad
AMD
Mesa
SUSE
OpenEmbedded
WDC
Null
Used for ABI Purposes with lccc
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more