Struct runscript::Runscript[][src]

pub struct Runscript {
    pub name: String,
    pub source: String,
    pub includes: Vec<RunscriptInclude>,
    pub scripts: Scripts,
    pub options: Vec<String>,
}

A parsed runscript

Fields

name: String

The name of the runscript for the location tracker

source: String

The source of the runscript for emitting errors

includes: Vec<RunscriptInclude>

The runscripts this runscript includes.

scripts: Scripts

The scripts this runscript declares

options: Vec<String>

Runtime options to change the behaviour of the interpreter

Implementations

impl Runscript[src]

pub fn unwind_fileid(&self, id: &[usize]) -> Option<&Runscript>[src]

pub fn get_target(
    &self,
    target: &str
) -> Option<&EnumMap<ScriptPhase, Option<Script>>>
[src]

pub fn get_default_script(&self, phase: ScriptPhase) -> Option<&Script>[src]

pub fn get_global_script(&self, phase: ScriptPhase) -> Option<&Script>[src]

pub fn get_pre_global_script(&self, phase: ScriptPhase) -> Option<&Script>[src]

Trait Implementations

impl Debug for Runscript[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.