Struct circomspect_program_structure::program_library::template_library::TemplateLibrary
source · [−]pub struct TemplateLibrary {
pub functions: FunctionInfo,
pub templates: TemplateInfo,
pub file_library: FileLibrary,
}Fields
functions: FunctionInfotemplates: TemplateInfofile_library: FileLibraryImplementations
sourceimpl TemplateLibrary
impl TemplateLibrary
pub fn new(
library_contents: HashMap<FileID, Vec<Definition>>,
file_library: FileLibrary
) -> TemplateLibrary
pub fn contains_template(&self, template_name: &str) -> bool
pub fn get_template(&self, template_name: &str) -> &TemplateData
pub fn get_template_mut(&mut self, template_name: &str) -> &mut TemplateData
pub fn get_templates(&self) -> &TemplateInfo
pub fn get_templates_mut(&mut self) -> &mut TemplateInfo
pub fn contains_function(&self, function_name: &str) -> bool
pub fn get_function(&self, function_name: &str) -> &FunctionData
pub fn get_function_mut(&mut self, function_name: &str) -> &mut FunctionData
pub fn get_functions(&self) -> &FunctionInfo
pub fn get_functions_mut(&mut self) -> &mut FunctionInfo
pub fn get_file_library(&self) -> &FileLibrary
Auto Trait Implementations
impl RefUnwindSafe for TemplateLibrary
impl Send for TemplateLibrary
impl Sync for TemplateLibrary
impl Unpin for TemplateLibrary
impl UnwindSafe for TemplateLibrary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more