pub struct AgdaModule {
pub module_name: String,
pub params: Vec<(String, AgdaExpr)>,
pub imports: Vec<String>,
pub opens: Vec<String>,
pub declarations: Vec<AgdaDecl>,
}Expand description
A complete Agda 2 source file.
Fields§
§module_name: StringTop-level module name (must match filename without .agda extension)
params: Vec<(String, AgdaExpr)>Module-level parameters (for parameterised modules)
imports: Vec<String>import directives
opens: Vec<String>open directives (after imports)
declarations: Vec<AgdaDecl>Top-level declarations
Implementations§
Source§impl AgdaModule
impl AgdaModule
Trait Implementations§
Source§impl Clone for AgdaModule
impl Clone for AgdaModule
Source§fn clone(&self) -> AgdaModule
fn clone(&self) -> AgdaModule
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 moreAuto Trait Implementations§
impl Freeze for AgdaModule
impl RefUnwindSafe for AgdaModule
impl Send for AgdaModule
impl Sync for AgdaModule
impl Unpin for AgdaModule
impl UnsafeUnpin for AgdaModule
impl UnwindSafe for AgdaModule
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