|
|
@@ -613,6 +613,16 @@ impl Variant {
|
|
|
.count() as u8
|
|
|
}
|
|
|
|
|
|
+ pub fn callers_vec(&self) -> Vec<Annotation> {
|
|
|
+ self
|
|
|
+ .annotations
|
|
|
+ .iter()
|
|
|
+ .filter(|a| matches!(a, Annotation::Callers(..)))
|
|
|
+ .cloned()
|
|
|
+ .collect()
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
pub fn callers(&self) -> String {
|
|
|
let mut callers: Vec<String> = self
|
|
|
.annotations
|