pub struct I18nConfig<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> I18nConfig<'a>
impl<'a> I18nConfig<'a>
pub const VT_DEFAULT_LOCALE: VOffsetT = 4
pub const VT_SUPPORTED_LOCALES: VOffsetT = 6
pub const VT_MODE: VOffsetT = 8
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args I18nConfigArgs<'args>, ) -> WIPOffset<I18nConfig<'bldr>>
Sourcepub fn default_locale(&self) -> &'a str
pub fn default_locale(&self) -> &'a str
Default/primary locale.
Sourcepub fn supported_locales(&self) -> Vector<'a, ForwardsUOffset<&'a str>>
pub fn supported_locales(&self) -> Vector<'a, ForwardsUOffset<&'a str>>
All supported locales.
Trait Implementations§
Source§impl<'a> Clone for I18nConfig<'a>
impl<'a> Clone for I18nConfig<'a>
Source§fn clone(&self) -> I18nConfig<'a>
fn clone(&self) -> I18nConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for I18nConfig<'_>
impl Debug for I18nConfig<'_>
Source§impl<'a> Follow<'a> for I18nConfig<'a>
impl<'a> Follow<'a> for I18nConfig<'a>
Source§impl<'a> PartialEq for I18nConfig<'a>
impl<'a> PartialEq for I18nConfig<'a>
Source§impl Verifiable for I18nConfig<'_>
impl Verifiable for I18nConfig<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for I18nConfig<'a>
impl<'a> StructuralPartialEq for I18nConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for I18nConfig<'a>
impl<'a> RefUnwindSafe for I18nConfig<'a>
impl<'a> Send for I18nConfig<'a>
impl<'a> Sync for I18nConfig<'a>
impl<'a> Unpin for I18nConfig<'a>
impl<'a> UnsafeUnpin for I18nConfig<'a>
impl<'a> UnwindSafe for I18nConfig<'a>
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