[][src]Struct romulus::runtime::Environment

pub struct Environment<'a> {
    pub lineno: i64,
    pub event: Event,
    // some fields omitted
}

Embodies the current state of the program

Fields

lineno: i64

The current line number being processed

event: Event

Current event being handled

Methods

impl<'a> Environment<'a>[src]

pub fn new<W: Write>(
    w: &'a mut W,
    node: &Seq,
    seperator: Regex
) -> Environment<'a>
[src]

Creates a new environment

impl<'a> Environment<'a>[src]

pub fn lookup(&self, key: &str) -> Option<String>[src]

Looks up a variable from the stack of scopes

Auto Trait Implementations

impl<'a> !Send for Environment<'a>

impl<'a> Unpin for Environment<'a>

impl<'a> !Sync for Environment<'a>

impl<'a> !UnwindSafe for Environment<'a>

impl<'a> !RefUnwindSafe for Environment<'a>

Blanket Implementations

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.

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

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

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