Enum erg_compiler::context::instantiate::ConstTemplate
source · [−]pub enum ConstTemplate {
Obj(ValueObj),
App {
name: Str,
non_default_args: Vec<Type>,
default_args: Vec<ConstTemplate>,
},
}
Variants
Obj(ValueObj)
App
Implementations
sourceimpl ConstTemplate
impl ConstTemplate
Trait Implementations
sourceimpl Clone for ConstTemplate
impl Clone for ConstTemplate
sourcefn clone(&self) -> ConstTemplate
fn clone(&self) -> ConstTemplate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConstTemplate
impl Debug for ConstTemplate
sourceimpl Hash for ConstTemplate
impl Hash for ConstTemplate
sourceimpl PartialEq<ConstTemplate> for ConstTemplate
impl PartialEq<ConstTemplate> for ConstTemplate
sourcefn 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 ==
. Read more
impl Eq for ConstTemplate
impl StructuralEq for ConstTemplate
impl StructuralPartialEq for ConstTemplate
Auto Trait Implementations
impl !RefUnwindSafe for ConstTemplate
impl !Send for ConstTemplate
impl !Sync for ConstTemplate
impl Unpin for ConstTemplate
impl !UnwindSafe for ConstTemplate
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