pub struct LocaleFallbackerBorrowed<'a> { /* private fields */ }
Expand description
Borrowed version of LocaleFallbacker
.
Implementations§
Source§impl<'a> LocaleFallbackerBorrowed<'a>
impl<'a> LocaleFallbackerBorrowed<'a>
Sourcepub const fn for_config(
self,
config: LocaleFallbackConfig,
) -> LocaleFallbackerWithConfig<'a>
pub const fn for_config( self, config: LocaleFallbackConfig, ) -> LocaleFallbackerWithConfig<'a>
Associates a configuration with this fallbacker.
Source§impl LocaleFallbackerBorrowed<'static>
impl LocaleFallbackerBorrowed<'static>
Sourcepub const fn static_to_owned(self) -> LocaleFallbacker
pub const fn static_to_owned(self) -> LocaleFallbacker
Cheaply converts a [LocaleFallbackerBorrowed<'static>
] into a LocaleFallbacker
.
Note: Due to branching and indirection, using LocaleFallbacker
might inhibit some
compile-time optimizations that are possible with LocaleFallbackerBorrowed
.
Trait Implementations§
Source§impl<'a> Clone for LocaleFallbackerBorrowed<'a>
impl<'a> Clone for LocaleFallbackerBorrowed<'a>
Source§fn clone(&self) -> LocaleFallbackerBorrowed<'a>
fn clone(&self) -> LocaleFallbackerBorrowed<'a>
Returns a copy 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<'a> Debug for LocaleFallbackerBorrowed<'a>
impl<'a> Debug for LocaleFallbackerBorrowed<'a>
Source§impl<'a> PartialEq for LocaleFallbackerBorrowed<'a>
impl<'a> PartialEq for LocaleFallbackerBorrowed<'a>
Source§fn eq(&self, other: &LocaleFallbackerBorrowed<'a>) -> bool
fn eq(&self, other: &LocaleFallbackerBorrowed<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> Copy for LocaleFallbackerBorrowed<'a>
impl<'a> StructuralPartialEq for LocaleFallbackerBorrowed<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocaleFallbackerBorrowed<'a>
impl<'a> RefUnwindSafe for LocaleFallbackerBorrowed<'a>
impl<'a> Send for LocaleFallbackerBorrowed<'a>
impl<'a> Sync for LocaleFallbackerBorrowed<'a>
impl<'a> Unpin for LocaleFallbackerBorrowed<'a>
impl<'a> UnwindSafe for LocaleFallbackerBorrowed<'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