[][src]Struct fluent_bundle::resolver::Scope

pub struct Scope<'scope, 'errors, R, M> {
    pub bundle: &'scope FluentBundleBase<R, M>,
    pub errors: Option<&'errors mut Vec<FluentError>>,
    pub dirty: bool,
    // some fields omitted
}

State for a single ResolveValue::to_value call.

Fields

bundle: &'scope FluentBundleBase<R, M>

The current FluentBundleBase instance.

errors: Option<&'errors mut Vec<FluentError>>

Track errors accumulated during resolving.

dirty: bool

Makes the resolver bail.

Implementations

impl<'scope, 'errors, R, M: MemoizerKind> Scope<'scope, 'errors, R, M>[src]

pub fn new(
    bundle: &'scope FluentBundleBase<R, M>,
    args: Option<&'scope FluentArgs<'_>>,
    errors: Option<&'errors mut Vec<FluentError>>
) -> Self
[src]

pub fn add_error(&mut self, error: ResolverError)[src]

pub fn maybe_track<W>(
    &mut self,
    w: &mut W,
    pattern: &'scope Pattern<&str>,
    exp: &'scope Expression<&str>
) -> Result where
    R: Borrow<FluentResource>,
    W: Write
[src]

pub fn track<W>(
    &mut self,
    w: &mut W,
    pattern: &'scope Pattern<&str>,
    exp: &InlineExpression<&str>
) -> Result where
    R: Borrow<FluentResource>,
    W: Write
[src]

pub fn write_ref_error<W>(
    &mut self,
    w: &mut W,
    exp: &InlineExpression<&str>
) -> Result where
    W: Write
[src]

pub fn get_arguments(
    &mut self,
    arguments: &'scope Option<CallArguments<&'scope str>>
) -> (Vec<FluentValue<'scope>>, FluentArgs<'scope>) where
    R: Borrow<FluentResource>, 
[src]

Auto Trait Implementations

impl<'scope, 'errors, R, M> !RefUnwindSafe for Scope<'scope, 'errors, R, M>

impl<'scope, 'errors, R, M> !Send for Scope<'scope, 'errors, R, M>

impl<'scope, 'errors, R, M> !Sync for Scope<'scope, 'errors, R, M>

impl<'scope, 'errors, R, M> Unpin for Scope<'scope, 'errors, R, M>

impl<'scope, 'errors, R, M> !UnwindSafe for Scope<'scope, 'errors, R, M>

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.