#[rustfmt::skip]
mod versions;
use {
crate::protocols::ObjectInterface,
linearize::StaticCopyMap,
std::fmt::{Debug, Formatter},
versions::*,
};
#[derive(Copy, Clone)]
pub struct Baseline(u32, pub(crate) &'static StaticCopyMap<ObjectInterface, u32>);
impl Debug for Baseline {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.write_str("Baseline::")?;
if self.0 == !0 {
f.write_str("ALL_OF_THEM")
} else {
f.write_str("V")?;
self.0.fmt(f)
}
}
}
impl Baseline {
pub const V0: Self = Self(0, v0::BASELINE);
#[deprecated]
#[doc(hidden)]
pub const V0_UNSTABLE: Self = Self::V0;
pub const V1: Self = Self(1, v1::BASELINE);
#[deprecated]
#[doc(hidden)]
pub const V1_UNSTABLE: Self = Self::V1;
pub const V2: Self = Self(2, v2::BASELINE);
#[deprecated]
#[doc(hidden)]
pub const V2_UNSTABLE: Self = Self::V2;
pub const V3: Self = Self(3, v3::BASELINE);
#[deprecated]
#[doc(hidden)]
pub const V3_UNSTABLE: Self = Self::V3;
#[doc(hidden)]
pub const V4_UNSTABLE: Self = Self(4, prototyping::BASELINE);
pub const ALL_OF_THEM: Self = Self(!0, prototyping::BASELINE);
}