pub struct LocaleFallbackerBorrowed<'a> {
likely_subtags: &'a LocaleFallbackLikelySubtagsV1<'a>,
parents: &'a LocaleFallbackParentsV1<'a>,
collation_supplement: Option<&'a LocaleFallbackSupplementV1<'a>>,
}
Expand description
Borrowed version of LocaleFallbacker
.
Fields§
§parents: &'a LocaleFallbackParentsV1<'a>
§collation_supplement: Option<&'a LocaleFallbackSupplementV1<'a>>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)