[][src]Struct romulus::runtime::Scope

pub struct Scope { /* fields omitted */ }

A scope containing variables

Methods

impl Scope[src]

pub fn new() -> Scope[src]

Create a new empty scope

pub fn from_regex(regex: &Regex, line: &str) -> Scope[src]

pub fn from_captures(regex: &Regex, captures: &Captures) -> Scope[src]

impl Scope[src]

pub fn set(&mut self, name: String, value: String)[src]

Sets a variable in the current scope

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

Get a variable from the current scope

impl Scope[src]

pub fn env() -> Scope[src]

Generate a scope from os environmental variables

Trait Implementations

impl Default for Scope[src]

impl Clone for Scope[src]

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

Performs copy-assignment from source. Read more

impl AddAssign<Scope> for Scope[src]

Auto Trait Implementations

impl Send for Scope

impl Unpin for Scope

impl Sync for Scope

impl UnwindSafe for Scope

impl RefUnwindSafe for Scope

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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]