Struct fluent_bundle::resolver::Scope [−][src]
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]
bundle: &'scope FluentBundleBase<R, M>,
args: Option<&'scope FluentArgs<'_>>,
errors: Option<&'errors mut Vec<FluentError>>
) -> Self
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]
&mut self,
w: &mut W,
pattern: &'scope Pattern<&str>,
exp: &'scope Expression<&str>
) -> Result where
R: Borrow<FluentResource>,
W: Write,
pub fn track<W>(
&mut self,
w: &mut W,
pattern: &'scope Pattern<&str>,
exp: &InlineExpression<&str>
) -> Result where
R: Borrow<FluentResource>,
W: Write,
[src]
&mut self,
w: &mut W,
pattern: &'scope Pattern<&str>,
exp: &InlineExpression<&str>
) -> Result where
R: Borrow<FluentResource>,
W: Write,
pub fn write_ref_error<W>(
&mut self,
w: &mut W,
exp: &InlineExpression<&str>
) -> Result where
W: Write,
[src]
&mut self,
w: &mut W,
exp: &InlineExpression<&str>
) -> Result where
W: Write,
pub fn get_arguments(
&mut self,
arguments: &'scope Option<CallArguments<&'scope str>>
) -> (Vec<FluentValue<'scope>>, FluentArgs<'scope>) where
R: Borrow<FluentResource>,
[src]
&mut self,
arguments: &'scope Option<CallArguments<&'scope str>>
) -> (Vec<FluentValue<'scope>>, FluentArgs<'scope>) where
R: Borrow<FluentResource>,
Auto Trait Implementations
impl<'scope, 'errors, R, M> !RefUnwindSafe for Scope<'scope, 'errors, R, M>
[src]
impl<'scope, 'errors, R, M> !Send for Scope<'scope, 'errors, R, M>
[src]
impl<'scope, 'errors, R, M> !Sync for Scope<'scope, 'errors, R, M>
[src]
impl<'scope, 'errors, R, M> Unpin for Scope<'scope, 'errors, R, M>
[src]
impl<'scope, 'errors, R, M> !UnwindSafe for Scope<'scope, 'errors, R, M>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,