pub enum ModuleType {
Root,
Library,
}Variants§
Root
Only one root module may be defined in an AirScript program, using def.
The root module has no restrictions on what sections it can contain, and in a sense “provides” restricted sections to other modules in the program, e.g. random values and the trace columns.
Library
Any number of library modules are permitted in an AirScript program, using module.
Library modules are restricted from declaring the following sections:
- public_inputs
- random_values
- trace_columns
- boundary_constraints
- integrity_constraints
However, they are allowed to define constants, functions, and the periodic_columns section.
Trait Implementations§
Source§impl Clone for ModuleType
impl Clone for ModuleType
Source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a copy 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 Debug for ModuleType
impl Debug for ModuleType
Source§impl PartialEq for ModuleType
impl PartialEq for ModuleType
impl Copy for ModuleType
impl Eq for ModuleType
impl StructuralPartialEq for ModuleType
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.