[][src]Struct fluent_bundle::resolve::Env

pub struct Env<'env> {
    pub bundle: &'env FluentBundle<'env>,
    pub args: Option<&'env HashMap<&'env str, FluentValue>>,
    pub travelled: RefCell<Vec<u64>>,
}

State for a single ResolveValue::to_value call.

Fields

bundle: &'env FluentBundle<'env>

The current FluentBundle instance.

args: Option<&'env HashMap<&'env str, FluentValue>>

The current arguments passed by the developer.

travelled: RefCell<Vec<u64>>

Tracks hashes to prevent infinite recursion.

Methods

impl<'env> Env<'env>[src]

pub fn new(
    bundle: &'env FluentBundle,
    args: Option<&'env HashMap<&'env str, FluentValue>>
) -> Self
[src]

Auto Trait Implementations

impl<'env> Send for Env<'env>

impl<'env> !Sync for Env<'env>

Blanket Implementations

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

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.