Returns the total number of learnings across all categories.
(&self)
| 125 | impl Learnings { |
| 126 | /// Returns the total number of learnings across all categories. |
| 127 | pub fn total(&self) -> usize { |
| 128 | self.repo.len() + self.code.len() + self.workflow.len() |
| 129 | } |
| 130 | |
| 131 | /// Returns true if there are no learnings in any category. |
| 132 | pub fn is_empty(&self) -> bool { |