pub enum CacheEntry {
Static(&'static str),
Dynamic,
}Expand description
Represents the result of a cache lookup from the generated PHF map.
This enum allows the system to distinguish between zero-cost static strings
and those that require the heavier FluentBundle machinery.
Variants§
Static(&'static str)
The message is static and contains no variables.
The payload is a direct reference to the string in the binary’s data section.
Dynamic
The message is dynamic (contains variables/selectors).
This indicates that the system must load the ConcurrentFluentBundle to
resolve the final string.
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§fn clone(&self) -> CacheEntry
fn clone(&self) -> CacheEntry
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 CacheEntry
impl Debug for CacheEntry
Source§impl PartialEq for CacheEntry
impl PartialEq for CacheEntry
impl Copy for CacheEntry
impl Eq for CacheEntry
impl StructuralPartialEq for CacheEntry
Auto Trait Implementations§
impl Freeze for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnwindSafe for CacheEntry
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