pub struct EmcRegistry { /* private fields */ }Expand description
Registry for looking up Equation Model Cards.
Implementations§
Source§impl EmcRegistry
impl EmcRegistry
Sourcepub fn default_library() -> Self
pub fn default_library() -> Self
Create a registry with the default EMC library path.
Sourcepub fn scan_directory(&mut self) -> Result<usize, String>
pub fn scan_directory(&mut self) -> Result<usize, String>
Scan the base directory for EMC files and register them.
§Errors
Returns error if directory cannot be read.
Sourcepub fn list_references(&self) -> Vec<&str>
pub fn list_references(&self) -> Vec<&str>
Get all registered EMC references.
Trait Implementations§
Source§impl Debug for EmcRegistry
impl Debug for EmcRegistry
Source§impl Default for EmcRegistry
impl Default for EmcRegistry
Source§fn default() -> EmcRegistry
fn default() -> EmcRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmcRegistry
impl RefUnwindSafe for EmcRegistry
impl Send for EmcRegistry
impl Sync for EmcRegistry
impl Unpin for EmcRegistry
impl UnsafeUnpin for EmcRegistry
impl UnwindSafe for EmcRegistry
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