pub struct KnowledgeBase { /* private fields */ }Implementations§
Source§impl KnowledgeBase
impl KnowledgeBase
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn with_additional_validators( root: impl Into<PathBuf>, validators: impl IntoIterator<Item = Arc<dyn AdditionalValidator>>, ) -> Self
pub fn root(&self) -> &Path
Sourcepub fn validate(&self) -> Vec<Diagnostic>
pub fn validate(&self) -> Vec<Diagnostic>
Validates this repository with the built-in and configured domain validators.
pub fn entities(&self) -> Entities<'_>
pub fn entity_types(&self) -> EntityTypes<'_>
pub fn properties(&self) -> Properties<'_>
pub fn references(&self) -> References<'_>
pub fn entity_contexts(&self) -> EntityContexts<'_>
Trait Implementations§
Source§impl Clone for KnowledgeBase
impl Clone for KnowledgeBase
Source§fn clone(&self) -> KnowledgeBase
fn clone(&self) -> KnowledgeBase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for KnowledgeBase
impl !UnwindSafe for KnowledgeBase
impl Freeze for KnowledgeBase
impl Send for KnowledgeBase
impl Sync for KnowledgeBase
impl Unpin for KnowledgeBase
impl UnsafeUnpin for KnowledgeBase
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