[][src]Struct treescript_interpreter::program::Program

pub struct Program {
    pub libraries: Vec<LibrarySpec>,
    pub main_group: GroupDef,
    pub sub_groups: Rc<Vec<GroupDef>>,
}

Fields

libraries: Vec<LibrarySpec>main_group: GroupDefsub_groups: Rc<Vec<GroupDef>>

Methods

impl Program[src]

pub fn new_session(&self) -> Session[src]

pub fn inferred_lang(&self) -> Option<String>[src]

pub fn run<R: Read, W: Write>(
    &self,
    session: &mut Session,
    in_path: &Option<PathBuf>,
    input: &mut R,
    output: &mut W
)
[src]

Trait Implementations

impl Clone for Program[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<ProgramSerial> for Program[src]

impl<R: Read> From<R> for Program[src]

impl Debug for Program[src]

Auto Trait Implementations

impl !Send for Program

impl !Sync for Program

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.