Skip to main content

HookContextI18nExt

Trait HookContextI18nExt 

Source
pub trait HookContextI18nExt {
    // Required method
    fn i18n() -> I18n;
}
Expand description

Extension trait that exposes the hook-context factory used by App::use_i18n.

Required Methods§

Source

fn i18n() -> I18n

Returns the I18n for the current hook context slot.

§Returns
  • I18n - A I18n value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HookContextI18nExt for HookContext

Source§

fn i18n() -> I18n

Returns a fresh I18n bound to the current component scope.

§Returns
  • I18n - A I18n value.

Implementors§