diff options
Diffstat (limited to '')
-rw-r--r-- | macros/src/analyze.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/src/analyze.rs b/macros/src/analyze.rs index 0fc125da..65d98e69 100644 --- a/macros/src/analyze.rs +++ b/macros/src/analyze.rs @@ -17,6 +17,13 @@ pub enum Ownership { } impl Ownership { + pub fn ceiling(&self) -> u8 { + match *self { + Ownership::Owned { priority } => priority, + Ownership::Shared { ceiling } => ceiling, + } + } + pub fn is_owned(&self) -> bool { match *self { Ownership::Owned { .. } => true, |