Struct move_lang::shared::CompilationEnv
source · pub struct CompilationEnv { /* private fields */ }
Implementations§
source§impl CompilationEnv
impl CompilationEnv
pub fn new( flags: Flags, named_address_mapping: BTreeMap<Symbol, AddressBytes> ) -> Self
pub fn add_diag(&mut self, diag: Diagnostic)
pub fn add_diags(&mut self, diags: Diagnostics)
pub fn has_diags(&self) -> bool
pub fn count_diags(&self) -> usize
pub fn check_diags_at_or_above_severity( &mut self, threshold: Severity ) -> Result<(), Diagnostics>
sourcepub fn take_final_warning_diags(&mut self) -> Diagnostics
pub fn take_final_warning_diags(&mut self) -> Diagnostics
Should only be called after compilation is finished
pub fn flags(&self) -> &Flags
pub fn named_address_mapping(&self) -> &BTreeMap<Symbol, AddressBytes>
Trait Implementations§
source§impl Clone for CompilationEnv
impl Clone for CompilationEnv
source§fn clone(&self) -> CompilationEnv
fn clone(&self) -> CompilationEnv
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 CompilationEnv
impl Debug for CompilationEnv
source§impl PartialEq<CompilationEnv> for CompilationEnv
impl PartialEq<CompilationEnv> for CompilationEnv
source§fn eq(&self, other: &CompilationEnv) -> bool
fn eq(&self, other: &CompilationEnv) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompilationEnv
impl StructuralEq for CompilationEnv
impl StructuralPartialEq for CompilationEnv
Auto Trait Implementations§
impl RefUnwindSafe for CompilationEnv
impl Send for CompilationEnv
impl Sync for CompilationEnv
impl Unpin for CompilationEnv
impl UnwindSafe for CompilationEnv
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.