Struct fluent_typed::prelude::L10nBundle
source · pub struct L10nBundle { /* private fields */ }
Implementations§
source§impl L10nBundle
impl L10nBundle
pub fn new(lang: impl AsRef<str>, bytes: &[u8]) -> Result<Self, String>
pub fn lang(&self) -> &str
pub fn msg( &self, id: &str, args: Option<FluentArgs<'_>>, ) -> Result<Cow<'_, str>, String>
pub fn attr( &self, msg: &str, attr: &str, args: Option<FluentArgs<'_>>, ) -> Result<Cow<'_, str>, String>
Auto Trait Implementations§
impl !Freeze for L10nBundle
impl !RefUnwindSafe for L10nBundle
impl !Send for L10nBundle
impl !Sync for L10nBundle
impl Unpin for L10nBundle
impl !UnwindSafe for L10nBundle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more