pub struct DeclarationEngine {
pub global_declarations: HashMap<String, Declaration>,
}Expand description
Engine for managing and processing code declarations.
Fields§
§global_declarations: HashMap<String, Declaration>Stores global-level declarations accessible across the entire project.
Implementations§
Source§impl DeclarationEngine
impl DeclarationEngine
Sourcepub fn parse_declaration(
&mut self,
line: &str,
local_declarations: &mut HashMap<String, Declaration>,
) -> bool
pub fn parse_declaration( &mut self, line: &str, local_declarations: &mut HashMap<String, Declaration>, ) -> bool
pub fn process_script(&mut self, script: &str) -> HashMap<String, Declaration>
Trait Implementations§
Source§impl Clone for DeclarationEngine
impl Clone for DeclarationEngine
Source§fn clone(&self) -> DeclarationEngine
fn clone(&self) -> DeclarationEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DeclarationEngine
impl Default for DeclarationEngine
Source§fn default() -> DeclarationEngine
fn default() -> DeclarationEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeclarationEngine
impl RefUnwindSafe for DeclarationEngine
impl Send for DeclarationEngine
impl Sync for DeclarationEngine
impl Unpin for DeclarationEngine
impl UnwindSafe for DeclarationEngine
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