Skip to main content

Model

Trait Model 

Source
pub trait Model {
Show 15 methods // Required methods fn concept(&self, id: Sctid) -> Result<Option<Ordinal>, EvalError>; fn sctid(&self, concept: Ordinal) -> Result<Option<Sctid>, EvalError>; fn all(&self) -> RoaringBitmap; fn roots(&self) -> RoaringBitmap; fn leaves(&self) -> RoaringBitmap; fn descendants(&self, concept: Ordinal) -> &RoaringBitmap; fn ancestors(&self, concept: Ordinal) -> &RoaringBitmap; fn children(&self, concept: Ordinal) -> RoaringBitmap; fn parents(&self, concept: Ordinal) -> RoaringBitmap; fn attributes(&self) -> &Attributes; fn members(&self) -> &RefsetMembers; fn identifiers(&self) -> &Identifiers; fn scheme(&self, alias: &str) -> Result<Option<u64>, EvalError>; fn filter_concepts( &self, within: &RoaringBitmap, predicates: &[ConceptPredicate], ) -> Result<RoaringBitmap, EvalError>; fn filter_descriptions( &self, within: &RoaringBitmap, predicates: &[DescriptionPredicate], ) -> Result<RoaringBitmap, EvalError>;
}
Expand description

The edition an expression is evaluated against.

Required Methods§

Source

fn concept(&self, id: Sctid) -> Result<Option<Ordinal>, EvalError>

The ordinal of a concept, None when the edition lacks it.

§Errors

Returns EvalError::Storage when the edition cannot be read.

Source

fn sctid(&self, concept: Ordinal) -> Result<Option<Sctid>, EvalError>

The SCTID of a concept.

§Errors

Returns EvalError::Storage when the edition cannot be read.

Source

fn all(&self) -> RoaringBitmap

Every concept, active and inactive.

Source

fn roots(&self) -> RoaringBitmap

The concepts with no parent.

Source

fn leaves(&self) -> RoaringBitmap

The concepts with no child.

Source

fn descendants(&self, concept: Ordinal) -> &RoaringBitmap

The transitive descendants, self excluded.

Source

fn ancestors(&self, concept: Ordinal) -> &RoaringBitmap

The transitive ancestors, self excluded.

Source

fn children(&self, concept: Ordinal) -> RoaringBitmap

The direct children.

Source

fn parents(&self, concept: Ordinal) -> RoaringBitmap

The direct parents.

Source

fn attributes(&self) -> &Attributes

The attribute relationships.

Source

fn members(&self) -> &RefsetMembers

The reference set member tables.

Source

fn identifiers(&self) -> &Identifiers

The alternate identifiers.

Source

fn scheme(&self, alias: &str) -> Result<Option<u64>, EvalError>

The identifier scheme an alias names (case-insensitively).

§Errors

Returns EvalError::Storage when the edition cannot be read.

Source

fn filter_concepts( &self, within: &RoaringBitmap, predicates: &[ConceptPredicate], ) -> Result<RoaringBitmap, EvalError>

The concepts of within whose concept rows satisfy every predicate.

§Errors

Returns EvalError for a predicate the edition cannot answer.

Source

fn filter_descriptions( &self, within: &RoaringBitmap, predicates: &[DescriptionPredicate], ) -> Result<RoaringBitmap, EvalError>

The concepts of within that have one description satisfying every predicate.

§Errors

Returns EvalError for a predicate the edition cannot answer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§