pub struct FunctionRegistry<P: ProcessManager> { /* private fields */ }Implementations§
Source§impl<P: ProcessManager> FunctionRegistry<P>
impl<P: ProcessManager> FunctionRegistry<P>
Sourcepub fn set_script_docs(&mut self, docs: &HashMap<String, (String, String)>)
pub fn set_script_docs(&mut self, docs: &HashMap<String, (String, String)>)
Install script # docs keyed by bare base name. Stored under
qualified SCRIPT::NAME keys.
Sourcepub fn script_doc_for(&self, qualified: &str) -> Option<(String, String)>
pub fn script_doc_for(&self, qualified: &str) -> Option<(String, String)>
Script doc pair for a qualified name, if the parser collected one.
Sourcepub fn exported_metas(
&self,
func_exports: &[String],
unit_targets: &HashMap<String, Vec<(Option<String>, Option<GuardExpr>)>>,
) -> DiagnosticResult<Vec<FuncMeta>>
pub fn exported_metas( &self, func_exports: &[String], unit_targets: &HashMap<String, Vec<(Option<String>, Option<GuardExpr>)>>, ) -> DiagnosticResult<Vec<FuncMeta>>
Metadata for single-file EXPORT names in source order. Errors
name the first missing export; callers fail fast before serving.
Qualified names resolve through resolve_file_call_key, so
re-exported file functions serve under the export spelling.
Trait Implementations§
Source§impl<P: ProcessManager> Clone for FunctionRegistry<P>
impl<P: ProcessManager> Clone for FunctionRegistry<P>
Auto Trait Implementations§
impl<P> !RefUnwindSafe for FunctionRegistry<P>
impl<P> !UnwindSafe for FunctionRegistry<P>
impl<P> Forget for FunctionRegistry<P>
impl<P> Freeze for FunctionRegistry<P>
impl<P> Move for FunctionRegistry<P>
impl<P> Send for FunctionRegistry<P>
impl<P> Sync for FunctionRegistry<P>
impl<P> Unpin for FunctionRegistry<P>
impl<P> UnsafeUnpin for FunctionRegistry<P>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.