[−][src]Struct nodespeak::Compiler
Implementations
impl Compiler
[src]
pub fn new() -> Self
[src]
pub fn set_error_width(&mut self, width: usize)
[src]
pub fn add_source(&mut self, name: String, content: String)
[src]
pub fn add_source_from_file(&mut self, file_path: String) -> Result<()>
[src]
pub fn borrow_performance_counters(&self) -> &PerformanceCounters
[src]
pub fn compile_to_ast_impl<'a>(
pc: &mut PerformanceCounters,
source: &'a str,
file_id: usize
) -> Result<Program<'a>, CompileProblem>
[src]
pc: &mut PerformanceCounters,
source: &'a str,
file_id: usize
) -> Result<Program<'a>, CompileProblem>
pub fn compile_to_ast<'a>(
&'a mut self,
source_name: &str
) -> Result<Program<'a>, String>
[src]
&'a mut self,
source_name: &str
) -> Result<Program<'a>, String>
pub fn compile_to_vague(&mut self, source_name: &str) -> Result<Program, String>
[src]
pub fn compile_to_resolved(
&mut self,
source_name: &str
) -> Result<Program, String>
[src]
&mut self,
source_name: &str
) -> Result<Program, String>
pub fn compile_to_trivial(
&mut self,
source_name: &str
) -> Result<Program, String>
[src]
&mut self,
source_name: &str
) -> Result<Program, String>
pub fn compile_to_llvmir(
&mut self,
source_name: &str
) -> Result<Program, String>
[src]
&mut self,
source_name: &str
) -> Result<Program, String>
pub fn compile(&mut self, source_name: &str) -> Result<Program, String>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,