pub struct Classification { /* private fields */ }Expand description
The categories of one access, their bases, and the evidence.
Only CategoryMap::classify makes one, and every one it makes holds a
category, is of no category by an exact none or a resource kind, or is
unclassified with its reason: it has no
Default, so no empty classification can stand in for a missing one.
Debug shows the categories and the marks, never an id: a template id
tied to a patient says what kind of care they had.
Implementations§
Source§impl Classification
impl Classification
Sourcepub fn categories(&self) -> &BTreeMap<Category, BTreeSet<Basis>>
pub fn categories(&self) -> &BTreeMap<Category, BTreeSet<Basis>>
The categories, each with what it was read from.
Sourcepub fn is_no_category(&self) -> bool
pub fn is_no_category(&self) -> bool
Whether the access reached a resource of no category, or only data
the map declares none, and nothing unclassified.
Sourcepub fn unclassified(&self) -> Option<&Unclassified>
pub fn unclassified(&self) -> Option<&Unclassified>
Why the access, or a part of it, is unclassified; None when the
map classified all of it.
Sourcepub fn archetypes(&self) -> &BTreeSet<String>
pub fn archetypes(&self) -> &BTreeSet<String>
The archetype ids of the evidence.
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§impl Debug for Classification
impl Debug for Classification
impl Eq for Classification
Source§impl PartialEq for Classification
impl PartialEq for Classification
impl StructuralPartialEq for Classification
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more