Enum move_lang::compiled_unit::CompiledUnitEnum
source · pub enum CompiledUnitEnum<TModule: TargetModule, TScript: TargetScript> {
Module(TModule),
Script(TScript),
}
Variants§
Implementations§
source§impl CompiledUnitEnum<AnnotatedCompiledModule, AnnotatedCompiledScript>
impl CompiledUnitEnum<AnnotatedCompiledModule, AnnotatedCompiledScript>
pub fn verify(self) -> (Self, Diagnostics)
pub fn into_compiled_unit(self) -> CompiledUnit
pub fn loc(&self) -> &Loc
Trait Implementations§
source§impl<TModule: Clone + TargetModule, TScript: Clone + TargetScript> Clone for CompiledUnitEnum<TModule, TScript>
impl<TModule: Clone + TargetModule, TScript: Clone + TargetScript> Clone for CompiledUnitEnum<TModule, TScript>
source§fn clone(&self) -> CompiledUnitEnum<TModule, TScript>
fn clone(&self) -> CompiledUnitEnum<TModule, TScript>
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 more