use winapi::um::winnt::{ACL_REVISION, ACL_REVISION_DS};
use core::fmt::{self, Debug, Formatter};
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)] pub struct Revision(u8);
impl From<Revision> for u8 { fn from(r: Revision) -> Self { r.0 } }
impl From<Revision> for u32 { fn from(r: Revision) -> Self { r.0 as _ } }
impl Revision {
pub const unsafe fn from_unchecked(ty: u8) -> Self { Self(ty) }
}
pub const REVISION : Revision = Revision(ACL_REVISION as _);
pub const REVISION_DS : Revision = Revision(ACL_REVISION_DS as _);
impl Debug for Revision {
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
write!(fmt, "ACL_REVISION{}", self.0)
}
}