llvm_scratch/core/target_triple/
vendor.rs

1use std::fmt;
2
3#[derive(PartialEq, PartialOrd, Eq, Ord, Debug)]
4pub enum Vendor {
5    PC,
6}
7
8impl fmt::Display for Vendor {
9    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
10        let vendor_str = match self {
11            Self::PC => "pc",
12        };
13
14        write!(f, "{}", vendor_str)
15    }
16}