Enum erg_compiler::context::instantiate::ConstTemplate
source · pub enum ConstTemplate {
Obj(ValueObj),
App {
name: Str,
non_default_args: Vec<Type>,
default_args: Vec<ConstTemplate>,
},
}
Expand description
TODO: this struct will be removed when const functions are implemented.
Variants§
Implementations§
source§impl ConstTemplate
impl ConstTemplate
Trait Implementations§
source§impl Clone for ConstTemplate
impl Clone for ConstTemplate
source§fn clone(&self) -> ConstTemplate
fn clone(&self) -> ConstTemplate
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 ConstTemplate
impl Debug for ConstTemplate
source§impl Hash for ConstTemplate
impl Hash for ConstTemplate
source§impl PartialEq<ConstTemplate> for ConstTemplate
impl PartialEq<ConstTemplate> for ConstTemplate
source§fn eq(&self, other: &ConstTemplate) -> bool
fn eq(&self, other: &ConstTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.