Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/tpi/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,31 @@ impl FieldAttributes {
pub fn is_intro_virtual(self) -> bool {
matches!(self.method_properties(), 0x04 | 0x06)
}

#[inline]
pub fn is_pseudo(self) -> bool {
self.0 & 0x0020 != 0
}

#[inline]
pub fn noinherit(self) -> bool {
self.0 & 0x0040 != 0
}

#[inline]
pub fn noconstruct(self) -> bool {
self.0 & 0x0080 != 0
}

#[inline]
pub fn is_compgenx(self) -> bool {
self.0 & 0x0100 != 0
}

#[inline]
pub fn sealed(self) -> bool {
self.0 & 0x0200 != 0
}

// TODO
}
Expand Down