pub struct Catalog { /* private fields */ }Expand description
Registry of all available scientific functions.
Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn by_domain(&self, domain: &DomainType) -> Vec<&FunctionInfo>
pub fn by_domain(&self, domain: &DomainType) -> Vec<&FunctionInfo>
Returns all functions belonging to the given domain.
Sourcepub fn search(&self, pattern: &str) -> Vec<&FunctionInfo>
pub fn search(&self, pattern: &str) -> Vec<&FunctionInfo>
Searches functions by name substring (case-insensitive).
Sourcepub fn get(&self, name: &str) -> Option<&FunctionInfo>
pub fn get(&self, name: &str) -> Option<&FunctionInfo>
Looks up a function by exact name.
Sourcepub fn domain_summary(&self) -> Vec<(String, usize)>
pub fn domain_summary(&self) -> Vec<(String, usize)>
Returns (domain_name, function_count) pairs for every domain.
Sourcepub fn by_param(&self, param: &str) -> Vec<&FunctionInfo>
pub fn by_param(&self, param: &str) -> Vec<&FunctionInfo>
Returns functions that accept the given parameter name.
Sourcepub fn by_param_count(&self, n: usize) -> Vec<&FunctionInfo>
pub fn by_param_count(&self, n: usize) -> Vec<&FunctionInfo>
Returns functions with exactly n parameters.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Renders the catalog as a Markdown table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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