pub struct SysmlGraph { /* private fields */ }Implementations§
Source§impl SysmlGraph
impl SysmlGraph
pub fn new() -> Self
pub fn rebuild_indices(&mut self)
pub fn file_count(&self) -> usize
pub fn element_count(&self) -> usize
pub fn relationship_count(&self) -> usize
pub fn inspect(&self, name: &str) -> Option<Value>
pub fn save(&self, path: &Path) -> Result<(), CoreError>
pub fn load(path: &Path) -> Result<Self, CoreError>
Trait Implementations§
Source§impl Default for SysmlGraph
impl Default for SysmlGraph
Source§fn default() -> SysmlGraph
fn default() -> SysmlGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SysmlGraph
impl<'de> Deserialize<'de> for SysmlGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl KnowledgeGraph for SysmlGraph
impl KnowledgeGraph for SysmlGraph
type Elem = SysmlElement
type Rel = SysmlRelationship
fn index( &mut self, results: Vec<ParseResult<Self::Elem, Self::Rel>>, ) -> Result<(), IndexError>
fn search( &self, query: &str, level: DetailLevel, limit: usize, ) -> Vec<SearchResult>
fn trace(&self, element: &str, opts: TraceOptions) -> TraceResult
fn check(&self, check_type: CheckType) -> Vec<Finding>
fn query(&self, predicate: Predicate) -> Vec<Triple>
fn elements(&self) -> &[Self::Elem]
fn relationships(&self) -> &[Self::Rel]
Auto Trait Implementations§
impl Freeze for SysmlGraph
impl RefUnwindSafe for SysmlGraph
impl Send for SysmlGraph
impl Sync for SysmlGraph
impl Unpin for SysmlGraph
impl UnsafeUnpin for SysmlGraph
impl UnwindSafe for SysmlGraph
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