Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/fluent-bundle/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  memoizer.rs   Sprache: Rust

 

use crate::types::FluentType;
use intl_memoizer::Memoizable;
use unic_langid::LanguageIdentifier;

/// This trait contains thread-safe methods which extend [`intl_memoizer::IntlLangMemoizer`].
/// It is used as the generic bound in this crate when a memoizer is needed.
pub trait MemoizerKind: 'static {
    fn new(lang: LanguageIdentifier) -> Self
    where
        Self: Sized;

    /// A threadsafe variant of `with_try_get` from [`intl_memoizer::IntlLangMemoizer`].
    /// The generics enforce that `Self` and its arguments are actually threadsafe.
    ///
    /// `I` - The [Memoizable](intl_memoizer::Memoizable) internationalization formatter.
    ///
    /// `R` - The result from the format operation.
    ///
    /// `U` - The callback that accepts the instance of the intl formatter, and generates
    ///       some kind of results `R`.
    fn with_try_get_threadsafe<I, R, U>(&self, args: I::Args, callback: U) -> Result<R, I::Error>
    where
        Self: Sized,
        I: Memoizable + Send + Sync + 'static,
        I::Args: Send + Sync + 'static,
        U: FnOnce(&I) -> R;

    /// Wires up the `as_string` or `as_string_threadsafe` variants for [`FluentType`].
    fn stringify_value(&self, value: &dyn FluentType) -> std::borrow::Cow<'static, str>;
}

Messung V0.5 in Prozent
C=60 H=89 G=75

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-10-03) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.