1
0
Fork 0
forked from wry/wry

autocommit 2022-01-09 16:13:56 CET

This commit is contained in:
Julian Orth 2022-01-09 16:13:56 +01:00
parent 928f94daa6
commit b08bd94353
13 changed files with 151 additions and 28 deletions

View file

@ -159,5 +159,15 @@ macro_rules! bitor {
Self(self.0 | rhs.0)
}
}
impl $name {
pub fn contains(self, rhs: Self) -> bool {
self.0 & rhs.0 == rhs.0
}
pub fn is_some(self) -> bool {
self.0 != 0
}
}
};
}