pub struct TechniqueCatalog { /* private fields */ }Expand description
Deterministic in-memory catalog for validated technique records.
Implementations§
Source§impl TechniqueCatalog
impl TechniqueCatalog
pub fn new() -> Self
pub fn insert( &mut self, record: TechniqueRecord, ) -> Result<(), CatalogRecordError>
Sourcepub fn ranked(&self, category: TechniqueCategory) -> Vec<&TechniqueRecord>
pub fn ranked(&self, category: TechniqueCategory) -> Vec<&TechniqueRecord>
Returns records ordered by reported score descending, then ID ascending.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Debug for TechniqueCatalog
impl Debug for TechniqueCatalog
Source§impl Default for TechniqueCatalog
impl Default for TechniqueCatalog
Source§fn default() -> TechniqueCatalog
fn default() -> TechniqueCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TechniqueCatalog
impl RefUnwindSafe for TechniqueCatalog
impl Send for TechniqueCatalog
impl Sync for TechniqueCatalog
impl Unpin for TechniqueCatalog
impl UnsafeUnpin for TechniqueCatalog
impl UnwindSafe for TechniqueCatalog
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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