pub enum CompiledUnitEnum<TModule: TargetModule, TScript: TargetScript> {
    Module(TModule),
    Script(TScript),
}Variants
Module(TModule)
Script(TScript)
Implementations
sourceimpl CompiledUnitEnum<AnnotatedCompiledModule, AnnotatedCompiledScript>
 
impl CompiledUnitEnum<AnnotatedCompiledModule, AnnotatedCompiledScript>
pub fn verify(&self) -> Diagnostics
pub fn into_compiled_unit(self) -> CompiledUnit
pub fn package_name(&self) -> Option<Symbol>
pub fn loc(&self) -> &Loc
sourceimpl CompiledUnitEnum<NamedCompiledModule, NamedCompiledScript>
 
impl CompiledUnitEnum<NamedCompiledModule, NamedCompiledScript>
pub fn name(&self) -> Symbol
pub fn package_name(&self) -> Option<Symbol>
pub fn source_map(&self) -> &SourceMap
pub fn serialize(&self, bytecode_version: Option<u32>) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn serialize_debug(self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn serialize_source_map(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
Trait Implementations
sourceimpl<TModule: Clone + TargetModule, TScript: Clone + TargetScript> Clone for CompiledUnitEnum<TModule, TScript>
 
impl<TModule: Clone + TargetModule, TScript: Clone + TargetScript> Clone for CompiledUnitEnum<TModule, TScript>
sourcefn clone(&self) -> CompiledUnitEnum<TModule, TScript>
 
fn clone(&self) -> CompiledUnitEnum<TModule, TScript>
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<TModule: Debug + TargetModule, TScript: Debug + TargetScript> Debug for CompiledUnitEnum<TModule, TScript>
 
impl<TModule: Debug + TargetModule, TScript: Debug + TargetScript> Debug for CompiledUnitEnum<TModule, TScript>
Auto Trait Implementations
impl<TModule, TScript> RefUnwindSafe for CompiledUnitEnum<TModule, TScript> where
    TModule: RefUnwindSafe,
    TScript: RefUnwindSafe, 
impl<TModule, TScript> Send for CompiledUnitEnum<TModule, TScript> where
    TModule: Send,
    TScript: Send, 
impl<TModule, TScript> Sync for CompiledUnitEnum<TModule, TScript> where
    TModule: Sync,
    TScript: Sync, 
impl<TModule, TScript> Unpin for CompiledUnitEnum<TModule, TScript> where
    TModule: Unpin,
    TScript: Unpin, 
impl<TModule, TScript> UnwindSafe for CompiledUnitEnum<TModule, TScript> where
    TModule: UnwindSafe,
    TScript: UnwindSafe, 
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more