Pārlūkot izejas kodu

variant callers

Thomas 7 mēneši atpakaļ
vecāks
revīzija
c0b4e2964c
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      src/variant/variant_collection.rs

+ 10 - 0
src/variant/variant_collection.rs

@@ -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