Implement has_dtor method in TypeContents
This commit is contained in:
parent
4cb3bd558f
commit
a22539b083
1 changed files with 4 additions and 0 deletions
|
|
@ -2012,6 +2012,10 @@ impl TypeContents {
|
|||
pub fn inverse(&self) -> TypeContents {
|
||||
TypeContents { bits: !self.bits }
|
||||
}
|
||||
|
||||
pub fn has_dtor(&self) -> bool {
|
||||
self.intersects(TC::OwnsDtor)
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::BitOr<TypeContents,TypeContents> for TypeContents {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue