mf2 2.0.0

Unicode MessageFormat 2 for Rust, for Leptos web applications and native CLI and terminal applications: the one crate an application names — the call-site types, the Leptos layer, the native application support and its Ratatui text behind features, the formatter, and compile_str for ad-hoc messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# The public API that 2.x promises (docs/versioning.md). Written by `cargo xtask api`, checked by `cargo xtask ci`; commit it with the change.
# nightly-2026-09-24; mode: native; features: compile,fn-number,datetime-icu,host-std,native
pub mod mf2
pub use mf2::Arg
pub use mf2::BidiStrategy
pub use mf2::Catalog
pub use mf2::CatalogError
pub use mf2::Category
pub use mf2::CurrencyDisplay
pub use mf2::CustomValue
pub use mf2::Date
pub use mf2::DateFields
pub use mf2::DateLength
pub use mf2::DateStyle
pub use mf2::DateTime
pub use mf2::DateTimeOptions
pub use mf2::DateTimeRequest
pub use mf2::DigitOptions
pub use mf2::Digits
pub use mf2::Dir
pub use mf2::ErrorKind
pub use mf2::ErrorSink
pub use mf2::ExpressionPart
pub use mf2::FallbackSource
pub use mf2::FnContext
pub use mf2::FormatContext
pub use mf2::FormatError
pub use mf2::Formatter
pub use mf2::Function
pub use mf2::Grouping
pub use mf2::Host
pub use mf2::Isolation
pub use mf2::MarkupKind
pub use mf2::MarkupOptions
pub use mf2::MarkupPart
pub use mf2::Measure
pub use mf2::MeasureUnit
pub use mf2::MsgId
pub use mf2::NoErrors
pub use mf2::Number
pub use mf2::NumberFormatter
pub use mf2::NumberOut
pub use mf2::NumberRequest
pub use mf2::NumberSpec
pub use mf2::NumberStyle
pub use mf2::Operands
pub use mf2::OptionValue
pub use mf2::Options
pub use mf2::Part
pub use mf2::PartSink
pub use mf2::Registry
pub use mf2::RoundingMode
pub use mf2::RoundingPriority
pub use mf2::Sign
pub use mf2::SignDisplay
pub use mf2::Sink
pub use mf2::SubPartSink
pub use mf2::Time
pub use mf2::TimePrecision
pub use mf2::TimeZone
pub use mf2::UnitDisplay
pub use mf2::Value
pub use mf2::ZoneOption
pub use mf2::ZoneStyle
pub use mf2::fn_datetime
pub use mf2::fn_number
pub use mf2::functions
pub use mf2::host_std
pub use mf2::is_zone_name
pub mod mf2::native
#[non_exhaustive] pub enum mf2::native::Error
pub mf2::native::Error::AnotherCorpus
pub mf2::native::Error::Catalog
pub mf2::native::Error::Catalog::locale: alloc::string::String
pub mf2::native::Error::Catalog::source: mf2_catalog::error::CatalogError
pub mf2::native::Error::ContentMismatch
pub mf2::native::Error::ContentMismatch::actual: alloc::string::String
pub mf2::native::Error::ContentMismatch::path: std::path::PathBuf
pub mf2::native::Error::Io
pub mf2::native::Error::Io::path: std::path::PathBuf
pub mf2::native::Error::Io::source: core::io::error::Error
pub mf2::native::Error::LocaleMismatch
pub mf2::native::Error::LocaleMismatch::actual: alloc::string::String
pub mf2::native::Error::LocaleMismatch::expected: alloc::string::String
pub mf2::native::Error::MissingCatalog(alloc::string::String)
pub mf2::native::Error::NotEmbedded(alloc::string::String)
pub mf2::native::Error::UnknownLocale(alloc::string::String)
impl core::error::Error for mf2::native::Error
pub fn mf2::native::Error::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for mf2::native::Error
pub fn mf2::native::Error::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::native::Error
pub fn mf2::native::Error::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
#[non_exhaustive] pub enum mf2::native::LocaleSource
pub mf2::native::LocaleSource::Explicit
pub mf2::native::LocaleSource::Source
pub mf2::native::LocaleSource::System
impl core::clone::Clone for mf2::native::LocaleSource
pub fn mf2::native::LocaleSource::clone(&self) -> Self
impl core::cmp::Eq for mf2::native::LocaleSource
impl core::cmp::PartialEq for mf2::native::LocaleSource
pub fn mf2::native::LocaleSource::eq(&self, &Self) -> bool
impl core::fmt::Debug for mf2::native::LocaleSource
pub fn mf2::native::LocaleSource::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::hash::Hash for mf2::native::LocaleSource
pub fn mf2::native::LocaleSource::hash<__H: core::hash::Hasher>(&self, &mut __H)
impl core::marker::Copy for mf2::native::LocaleSource
impl core::marker::StructuralPartialEq for mf2::native::LocaleSource
pub struct mf2::native::Catalogs
impl mf2::native::Catalogs
pub const fn mf2::native::Catalogs::bidi(&self) -> mf2_runtime::format::BidiStrategy
pub const fn mf2::native::Catalogs::corpus(&self) -> &'static mf2::Corpus
pub fn mf2::native::Catalogs::embedded(&'static mf2::Corpus) -> core::result::Result<mf2::native::Catalogs, mf2::native::Error>
pub fn mf2::native::Catalogs::format(&self, &str, &impl mf2::Message) -> alloc::string::String
pub fn mf2::native::Catalogs::format_with_errors(&self, &str, &impl mf2::Message) -> (alloc::string::String, alloc::vec::Vec<mf2_runtime::error::FormatError>)
pub fn mf2::native::Catalogs::formatter(&self, &str) -> core::option::Option<mf2_runtime::format::Formatter<'_>>
pub fn mf2::native::Catalogs::from_directory(&'static mf2::Corpus, impl core::convert::AsRef<std::path::Path>) -> core::result::Result<mf2::native::Catalogs, mf2::native::Error>
pub fn mf2::native::Catalogs::locales(&self) -> impl core::iter::traits::exact_size::ExactSizeIterator<Item = &'static str> + '_
pub const fn mf2::native::Catalogs::set_bidi(&mut self, mf2_runtime::format::BidiStrategy)
pub const fn mf2::native::Catalogs::set_time_zone(&mut self, mf2_runtime::datetime::TimeZone)
pub const fn mf2::native::Catalogs::time_zone(&self) -> mf2_runtime::datetime::TimeZone
impl core::fmt::Debug for mf2::native::Catalogs
pub fn mf2::native::Catalogs::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct mf2::native::NativeI18n
impl mf2::native::NativeI18n
pub fn mf2::native::NativeI18n::available_locales(&self) -> impl core::iter::traits::exact_size::ExactSizeIterator<Item = &'static str> + use<>
pub const fn mf2::native::NativeI18n::bidi(&self) -> mf2_runtime::format::BidiStrategy
pub fn mf2::native::NativeI18n::catalog_file_name(&self, &str) -> core::option::Option<&'static str>
pub fn mf2::native::NativeI18n::dir(&self) -> mf2_model::id::Dir
pub fn mf2::native::NativeI18n::embedded(&'static mf2::Corpus) -> core::result::Result<Self, mf2::native::Error>
pub fn mf2::native::NativeI18n::format(&self, &impl mf2::Message) -> alloc::string::String
pub fn mf2::native::NativeI18n::format_with_errors(&self, &impl mf2::Message) -> (alloc::string::String, alloc::vec::Vec<mf2_runtime::error::FormatError>)
pub fn mf2::native::NativeI18n::formatter(&self) -> core::option::Option<mf2_runtime::format::Formatter<'_>>
pub fn mf2::native::NativeI18n::from_directory(&'static mf2::Corpus, impl core::convert::AsRef<std::path::Path>) -> core::result::Result<Self, mf2::native::Error>
pub fn mf2::native::NativeI18n::locale(&self) -> &'static str
pub const fn mf2::native::NativeI18n::locale_source(&self) -> mf2::native::LocaleSource
pub const fn mf2::native::NativeI18n::set_bidi(&mut self, mf2_runtime::format::BidiStrategy)
pub fn mf2::native::NativeI18n::set_locale(&mut self, &str) -> core::result::Result<(), mf2::native::Error>
pub const fn mf2::native::NativeI18n::set_time_zone(&mut self, mf2_runtime::datetime::TimeZone)
pub const fn mf2::native::NativeI18n::source_locale(&self) -> &'static str
pub const fn mf2::native::NativeI18n::time_zone(&self) -> mf2_runtime::datetime::TimeZone
impl core::fmt::Debug for mf2::native::NativeI18n
pub fn mf2::native::NativeI18n::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn mf2::native::bidi() -> mf2_runtime::format::BidiStrategy
pub fn mf2::native::install(&'static mf2::Corpus)
pub fn mf2::native::install_from_directory(&'static mf2::Corpus, impl core::convert::AsRef<std::path::Path>) -> core::result::Result<(), mf2::native::Error>
pub fn mf2::native::locale() -> &'static str
pub fn mf2::native::locale_source() -> mf2::native::LocaleSource
pub fn mf2::native::set_bidi(mf2_runtime::format::BidiStrategy)
pub fn mf2::native::set_locale(&str) -> core::result::Result<(), mf2::native::Error>
pub fn mf2::native::set_time_zone(mf2_runtime::datetime::TimeZone)
pub fn mf2::native::time_zone() -> mf2_runtime::datetime::TimeZone
pub fn mf2::native::with_locale<R>(&'static mf2::Corpus, &str, impl core::ops::function::FnOnce() -> R) -> core::result::Result<R, mf2::native::Error>
pub macro mf2::include_generated!
#[non_exhaustive] pub enum mf2::ArgValue
pub mf2::ArgValue::Custom(alloc::sync::Arc<(dyn mf2_runtime::value::CustomValue + core::marker::Send + core::marker::Sync)>)
pub mf2::ArgValue::DateTime(alloc::sync::Arc<mf2::DateTimeValue>)
pub mf2::ArgValue::Decimal(mf2::Text)
pub mf2::ArgValue::Float(f64)
pub mf2::ArgValue::Int(i64)
pub mf2::ArgValue::Source(alloc::sync::Arc<dyn mf2::ArgSource>)
pub mf2::ArgValue::Str(mf2::Text)
pub mf2::ArgValue::Unset
impl mf2::ArgValue
pub fn mf2::ArgValue::custom<C: mf2_runtime::value::CustomValue + core::marker::Send + core::marker::Sync + 'static>(C) -> mf2::ArgValue
pub fn mf2::ArgValue::decimal(impl core::convert::Into<mf2::Text>) -> mf2::ArgValue
pub fn mf2::ArgValue::source<S: mf2::ArgSource + 'static>(S) -> mf2::ArgValue
impl core::clone::Clone for mf2::ArgValue
pub fn mf2::ArgValue::clone(&self) -> Self
impl core::convert::From<&alloc::string::String> for mf2::ArgValue
pub fn mf2::ArgValue::from(&alloc::string::String) -> mf2::ArgValue
impl core::convert::From<&jiff::zoned::Zoned> for mf2::ArgValue
pub fn mf2::ArgValue::from(&jiff::zoned::Zoned) -> mf2::ArgValue
impl core::convert::From<&std::ffi::os_str::OsString> for mf2::ArgValue
pub fn mf2::ArgValue::from(&std::ffi::os_str::OsString) -> mf2::ArgValue
impl core::convert::From<&std::path::PathBuf> for mf2::ArgValue
pub fn mf2::ArgValue::from(&std::path::PathBuf) -> mf2::ArgValue
impl core::convert::From<&str> for mf2::ArgValue
pub fn mf2::ArgValue::from(&str) -> mf2::ArgValue
impl core::convert::From<alloc::string::String> for mf2::ArgValue
pub fn mf2::ArgValue::from(alloc::string::String) -> mf2::ArgValue
impl core::convert::From<alloc::sync::Arc<str>> for mf2::ArgValue
pub fn mf2::ArgValue::from(alloc::sync::Arc<str>) -> mf2::ArgValue
impl core::convert::From<char> for mf2::ArgValue
pub fn mf2::ArgValue::from(char) -> mf2::ArgValue
impl core::convert::From<f32> for mf2::ArgValue
pub fn mf2::ArgValue::from(f32) -> mf2::ArgValue
impl core::convert::From<f64> for mf2::ArgValue
pub fn mf2::ArgValue::from(f64) -> mf2::ArgValue
impl core::convert::From<i16> for mf2::ArgValue
pub fn mf2::ArgValue::from(i16) -> mf2::ArgValue
impl core::convert::From<i32> for mf2::ArgValue
pub fn mf2::ArgValue::from(i32) -> mf2::ArgValue
impl core::convert::From<i64> for mf2::ArgValue
pub fn mf2::ArgValue::from(i64) -> mf2::ArgValue
impl core::convert::From<i8> for mf2::ArgValue
pub fn mf2::ArgValue::from(i8) -> mf2::ArgValue
impl core::convert::From<mf2::DateTimeValue> for mf2::ArgValue
pub fn mf2::ArgValue::from(mf2::DateTimeValue) -> mf2::ArgValue
impl core::convert::From<mf2::Text> for mf2::ArgValue
pub fn mf2::ArgValue::from(mf2::Text) -> mf2::ArgValue
impl core::convert::From<mf2_runtime::datetime::DateTime<'_>> for mf2::ArgValue
pub fn mf2::ArgValue::from(mf2_runtime::datetime::DateTime<'_>) -> mf2::ArgValue
impl core::convert::From<u16> for mf2::ArgValue
pub fn mf2::ArgValue::from(u16) -> mf2::ArgValue
impl core::convert::From<u32> for mf2::ArgValue
pub fn mf2::ArgValue::from(u32) -> mf2::ArgValue
impl core::convert::From<u8> for mf2::ArgValue
pub fn mf2::ArgValue::from(u8) -> mf2::ArgValue
impl core::convert::From<usize> for mf2::ArgValue
pub fn mf2::ArgValue::from(usize) -> mf2::ArgValue
impl core::fmt::Debug for mf2::ArgValue
pub fn mf2::ArgValue::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::IntoArg for mf2::ArgValue
pub fn mf2::ArgValue::into_arg(self) -> mf2::ArgValue
impl<C: mf2_runtime::value::CustomValue + core::marker::Send + core::marker::Sync + 'static> core::convert::From<alloc::sync::Arc<C>> for mf2::ArgValue
pub fn mf2::ArgValue::from(alloc::sync::Arc<C>) -> mf2::ArgValue
#[non_exhaustive] pub enum mf2::CompileError
pub mf2::CompileError::Invalid(alloc::vec::Vec<mf2_model::diagnostic::Diagnostic>)
pub mf2::CompileError::Load(mf2_catalog::error::CatalogError)
pub mf2::CompileError::LocaleData(mf2_locale_data::error::Error)
pub mf2::CompileError::Write(mf2_catalog::error::WriteError)
impl mf2::CompileError
pub fn mf2::CompileError::kinds(&self) -> alloc::vec::Vec<mf2_model::diagnostic::ErrorKind>
impl core::convert::From<mf2_catalog::error::CatalogError> for mf2::CompileError
pub fn mf2::CompileError::from(mf2_catalog::error::CatalogError) -> Self
impl core::convert::From<mf2_catalog::error::WriteError> for mf2::CompileError
pub fn mf2::CompileError::from(mf2_catalog::error::WriteError) -> Self
impl core::convert::From<mf2_locale_data::error::Error> for mf2::CompileError
pub fn mf2::CompileError::from(mf2_locale_data::error::Error) -> Self
impl core::error::Error for mf2::CompileError
pub fn mf2::CompileError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for mf2::CompileError
pub fn mf2::CompileError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::CompileError
pub fn mf2::CompileError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub enum mf2::Text
pub mf2::Text::Shared(alloc::sync::Arc<str>)
pub mf2::Text::Static(&'static str)
impl mf2::Text
pub fn mf2::Text::as_str(&self) -> &str
impl core::clone::Clone for mf2::Text
pub fn mf2::Text::clone(&self) -> Self
impl core::convert::From<&'static str> for mf2::Text
pub fn mf2::Text::from(&'static str) -> mf2::Text
impl core::convert::From<alloc::string::String> for mf2::Text
pub fn mf2::Text::from(alloc::string::String) -> mf2::Text
impl core::convert::From<alloc::sync::Arc<str>> for mf2::Text
pub fn mf2::Text::from(alloc::sync::Arc<str>) -> mf2::Text
impl core::convert::From<mf2::Text> for mf2::ArgValue
pub fn mf2::ArgValue::from(mf2::Text) -> mf2::ArgValue
impl core::fmt::Debug for mf2::Text
pub fn mf2::Text::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::IntoArg for mf2::Text
pub fn mf2::Text::into_arg(self) -> mf2::ArgValue
pub struct mf2::ArgList(_)
impl mf2::ArgList
pub fn mf2::ArgList::as_slice(&self) -> &[mf2::ArgValue]
impl core::clone::Clone for mf2::ArgList
pub fn mf2::ArgList::clone(&self) -> Self
impl core::fmt::Debug for mf2::ArgList
pub fn mf2::ArgList::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct mf2::CatalogFile
impl mf2::CatalogFile
pub const fn mf2::CatalogFile::bytes(&self) -> core::option::Option<&'static [u8]>
pub const fn mf2::CatalogFile::file_name(&self) -> &'static str
pub const fn mf2::CatalogFile::tag(&self) -> &'static str
impl core::clone::Clone for mf2::CatalogFile
pub fn mf2::CatalogFile::clone(&self) -> Self
impl core::fmt::Debug for mf2::CatalogFile
pub fn mf2::CatalogFile::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for mf2::CatalogFile
#[non_exhaustive] pub struct mf2::Compiled
pub mf2::Compiled::catalog: mf2_catalog::reader::Catalog
impl mf2::Compiled
pub const mf2::Compiled::ID: mf2_model::id::MsgId
impl core::fmt::Debug for mf2::Compiled
pub fn mf2::Compiled::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct mf2::Corpus
impl mf2::Corpus
pub const fn mf2::Corpus::catalogs(&self) -> &'static [mf2::CatalogFile]
pub const fn mf2::Corpus::locales(&self) -> &'static [(&'static str, mf2_model::id::Dir)]
pub const fn mf2::Corpus::manifest_hash(&self) -> u64
pub const fn mf2::Corpus::registry(&self) -> &'static mf2_runtime::function::Registry
pub const fn mf2::Corpus::source_locale(&self) -> &'static str
impl core::clone::Clone for mf2::Corpus
pub fn mf2::Corpus::clone(&self) -> Self
impl core::fmt::Debug for mf2::Corpus
pub fn mf2::Corpus::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for mf2::Corpus
pub struct mf2::DateTimeValue
impl mf2::DateTimeValue
pub fn mf2::DateTimeValue::floating(mf2_runtime::datetime::Date, mf2_runtime::datetime::Time) -> mf2::DateTimeValue
pub fn mf2::DateTimeValue::instant(i64) -> core::option::Option<mf2::DateTimeValue>
pub fn mf2::DateTimeValue::wall_time(mf2_runtime::datetime::Date, mf2_runtime::datetime::Time, impl core::convert::Into<mf2::Text>) -> mf2::DateTimeValue
pub fn mf2::DateTimeValue::with_calendar(self, impl core::convert::Into<mf2::Text>) -> mf2::DateTimeValue
pub fn mf2::DateTimeValue::with_zone(self, impl core::convert::Into<mf2::Text>) -> mf2::DateTimeValue
impl core::clone::Clone for mf2::DateTimeValue
pub fn mf2::DateTimeValue::clone(&self) -> Self
impl core::convert::From<mf2::DateTimeValue> for mf2::ArgValue
pub fn mf2::ArgValue::from(mf2::DateTimeValue) -> mf2::ArgValue
impl core::convert::From<mf2_runtime::datetime::DateTime<'_>> for mf2::DateTimeValue
pub fn mf2::DateTimeValue::from(mf2_runtime::datetime::DateTime<'_>) -> mf2::DateTimeValue
impl core::fmt::Debug for mf2::DateTimeValue
pub fn mf2::DateTimeValue::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::IntoArg for mf2::DateTimeValue
pub fn mf2::DateTimeValue::into_arg(self) -> mf2::ArgValue
pub struct mf2::Handler<H>(pub H)
impl<H: mf2::MarkupHandler + 'static> mf2::IntoMarkupHandler for mf2::Handler<H>
pub fn mf2::Handler<H>::into_markup_handler(self) -> alloc::sync::Arc<dyn mf2::MarkupHandler>
impl<H> core::fmt::Debug for mf2::Handler<H>
pub fn mf2::Handler<H>::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct mf2::LanguageMatching
impl core::clone::Clone for mf2::LanguageMatching
pub fn mf2::LanguageMatching::clone(&self) -> Self
impl core::fmt::Debug for mf2::LanguageMatching
pub fn mf2::LanguageMatching::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for mf2::LanguageMatching
#[repr(transparent)] pub struct mf2::Tr
impl mf2::Tr
pub fn mf2::Tr::format(self, &mf2_runtime::format::Formatter<'_>) -> alloc::string::String
pub const fn mf2::Tr::id(self) -> mf2_model::id::MsgId
pub fn mf2::Tr::parts(self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::Tr::write(self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::Tr
pub fn mf2::Tr::to_cow(&self) -> alloc::borrow::Cow<'static, str>
pub fn mf2::Tr::to_plain_string(&self) -> alloc::string::String
pub fn mf2::Tr::to_string(&self) -> alloc::string::String
impl core::clone::Clone for mf2::Tr
pub fn mf2::Tr::clone(&self) -> Self
impl core::cmp::Eq for mf2::Tr
impl core::cmp::PartialEq for mf2::Tr
pub fn mf2::Tr::eq(&self, &Self) -> bool
impl core::convert::From<mf2::Tr> for alloc::string::String
pub fn alloc::string::String::from(mf2::Tr) -> alloc::string::String
impl core::convert::From<mf2::Tr> for mf2::TrArgs
pub fn mf2::TrArgs::from(mf2::Tr) -> mf2::TrArgs
impl core::fmt::Debug for mf2::Tr
pub fn mf2::Tr::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::Tr
pub fn mf2::Tr::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::hash::Hash for mf2::Tr
pub fn mf2::Tr::hash<__H: core::hash::Hasher>(&self, &mut __H)
impl core::marker::Copy for mf2::Tr
impl core::marker::StructuralPartialEq for mf2::Tr
impl mf2::Message for mf2::Tr
pub fn mf2::Tr::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::Tr::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
pub struct mf2::TrArgs
impl mf2::TrArgs
pub fn mf2::TrArgs::args(&self) -> &[mf2::ArgValue]
pub fn mf2::TrArgs::format(&self, &mf2_runtime::format::Formatter<'_>) -> alloc::string::String
pub const fn mf2::TrArgs::id(&self) -> mf2_model::id::MsgId
pub fn mf2::TrArgs::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrArgs::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::TrArgs
pub fn mf2::TrArgs::to_cow(&self) -> alloc::borrow::Cow<'static, str>
pub fn mf2::TrArgs::to_plain_string(&self) -> alloc::string::String
pub fn mf2::TrArgs::to_string(&self) -> alloc::string::String
impl core::clone::Clone for mf2::TrArgs
pub fn mf2::TrArgs::clone(&self) -> Self
impl core::convert::From<mf2::Tr> for mf2::TrArgs
pub fn mf2::TrArgs::from(mf2::Tr) -> mf2::TrArgs
impl core::convert::From<mf2::TrArgs> for alloc::string::String
pub fn alloc::string::String::from(mf2::TrArgs) -> alloc::string::String
impl core::fmt::Debug for mf2::TrArgs
pub fn mf2::TrArgs::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::TrArgs
pub fn mf2::TrArgs::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::Message for mf2::TrArgs
pub fn mf2::TrArgs::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrArgs::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
pub struct mf2::TrDyn
impl mf2::TrDyn
pub fn mf2::TrDyn::args(&self) -> &[(mf2::Text, mf2::ArgValue)]
pub fn mf2::TrDyn::format(&self, &mf2_runtime::format::Formatter<'_>) -> alloc::string::String
pub const fn mf2::TrDyn::id(&self) -> mf2_model::id::MsgId
pub fn mf2::TrDyn::new<N: core::convert::Into<mf2::Text>, V: core::convert::Into<mf2::ArgValue>>(mf2_model::id::MsgId, impl core::iter::traits::collect::IntoIterator<Item = (N, V)>) -> mf2::TrDyn
pub fn mf2::TrDyn::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrDyn::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::TrDyn
pub fn mf2::TrDyn::to_cow(&self) -> alloc::borrow::Cow<'static, str>
pub fn mf2::TrDyn::to_plain_string(&self) -> alloc::string::String
pub fn mf2::TrDyn::to_string(&self) -> alloc::string::String
impl core::clone::Clone for mf2::TrDyn
pub fn mf2::TrDyn::clone(&self) -> Self
impl core::convert::From<mf2::TrDyn> for alloc::string::String
pub fn alloc::string::String::from(mf2::TrDyn) -> alloc::string::String
impl core::fmt::Debug for mf2::TrDyn
pub fn mf2::TrDyn::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::TrDyn
pub fn mf2::TrDyn::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::Message for mf2::TrDyn
pub fn mf2::TrDyn::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrDyn::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
pub struct mf2::TrRich
impl mf2::TrRich
pub const fn mf2::TrRich::args(&self) -> &mf2::TrArgs
pub fn mf2::TrRich::format(&self, &mf2_runtime::format::Formatter<'_>) -> alloc::string::String
pub fn mf2::TrRich::handler(&self, &str) -> core::option::Option<&dyn mf2::MarkupHandler>
pub fn mf2::TrRich::handlers(&self) -> &[(u64, alloc::sync::Arc<dyn mf2::MarkupHandler>)]
pub const fn mf2::TrRich::id(&self) -> mf2_model::id::MsgId
pub fn mf2::TrRich::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrRich::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::TrRich
pub fn mf2::TrRich::to_cow(&self) -> alloc::borrow::Cow<'static, str>
pub fn mf2::TrRich::to_plain_string(&self) -> alloc::string::String
pub fn mf2::TrRich::to_string(&self) -> alloc::string::String
impl core::clone::Clone for mf2::TrRich
pub fn mf2::TrRich::clone(&self) -> Self
impl core::convert::From<mf2::TrRich> for alloc::string::String
pub fn alloc::string::String::from(mf2::TrRich) -> alloc::string::String
impl core::fmt::Debug for mf2::TrRich
pub fn mf2::TrRich::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::TrRich
pub fn mf2::TrRich::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl mf2::Message for mf2::TrRich
pub fn mf2::TrRich::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrRich::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
pub struct mf2::UnknownLocale
impl mf2::UnknownLocale
pub fn mf2::UnknownLocale::supported(&self) -> impl core::iter::traits::exact_size::ExactSizeIterator<Item = &'static str> + use<>
impl core::clone::Clone for mf2::UnknownLocale
pub fn mf2::UnknownLocale::clone(&self) -> Self
impl core::cmp::Eq for mf2::UnknownLocale
impl core::cmp::PartialEq for mf2::UnknownLocale
pub fn mf2::UnknownLocale::eq(&self, &Self) -> bool
impl core::error::Error for mf2::UnknownLocale
impl core::fmt::Debug for mf2::UnknownLocale
pub fn mf2::UnknownLocale::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for mf2::UnknownLocale
pub fn mf2::UnknownLocale::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for mf2::UnknownLocale
impl core::marker::StructuralPartialEq for mf2::UnknownLocale
pub trait mf2::ArgSource: core::marker::Send + core::marker::Sync
pub fn mf2::ArgSource::arg_value(&self) -> mf2::ArgValue
pub trait mf2::IntoArg
pub fn mf2::IntoArg::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for &std::ffi::os_str::OsStr
pub fn &std::ffi::os_str::OsStr::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for &std::path::Path
pub fn &std::path::Path::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for &str
pub fn &str::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for alloc::borrow::Cow<'static, str>
pub fn alloc::borrow::Cow<'static, str>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for alloc::string::String
pub fn alloc::string::String::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for alloc::sync::Arc<str>
pub fn alloc::sync::Arc<str>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for bool
pub fn bool::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for char
pub fn char::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<i128>
pub fn core::num::nonzero::NonZero<i128>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<i16>
pub fn core::num::nonzero::NonZero<i16>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<i32>
pub fn core::num::nonzero::NonZero<i32>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<i64>
pub fn core::num::nonzero::NonZero<i64>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<i8>
pub fn core::num::nonzero::NonZero<i8>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<isize>
pub fn core::num::nonzero::NonZero<isize>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<u128>
pub fn core::num::nonzero::NonZero<u128>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<u16>
pub fn core::num::nonzero::NonZero<u16>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<u32>
pub fn core::num::nonzero::NonZero<u32>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<u64>
pub fn core::num::nonzero::NonZero<u64>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<u8>
pub fn core::num::nonzero::NonZero<u8>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for core::num::nonzero::NonZero<usize>
pub fn core::num::nonzero::NonZero<usize>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for f32
pub fn f32::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for f64
pub fn f64::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for i128
pub fn i128::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for i16
pub fn i16::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for i32
pub fn i32::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for i64
pub fn i64::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for i8
pub fn i8::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for isize
pub fn isize::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for jiff::civil::date::Date
pub fn jiff::civil::date::Date::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for jiff::civil::datetime::DateTime
pub fn jiff::civil::datetime::DateTime::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for jiff::timestamp::Timestamp
pub fn jiff::timestamp::Timestamp::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for jiff::zoned::Zoned
pub fn jiff::zoned::Zoned::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for mf2::ArgValue
pub fn mf2::ArgValue::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for mf2::DateTimeValue
pub fn mf2::DateTimeValue::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for mf2::Text
pub fn mf2::Text::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for mf2_runtime::datetime::DateTime<'_>
pub fn mf2_runtime::datetime::DateTime<'_>::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for std::ffi::os_str::OsString
pub fn std::ffi::os_str::OsString::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for std::path::PathBuf
pub fn std::path::PathBuf::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for std::time::SystemTime
pub fn std::time::SystemTime::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for u128
pub fn u128::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for u16
pub fn u16::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for u32
pub fn u32::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for u64
pub fn u64::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for u8
pub fn u8::into_arg(self) -> mf2::ArgValue
impl mf2::IntoArg for usize
pub fn usize::into_arg(self) -> mf2::ArgValue
impl<C: mf2_runtime::value::CustomValue + core::marker::Send + core::marker::Sync + 'static> mf2::IntoArg for alloc::sync::Arc<C>
pub fn alloc::sync::Arc<C>::into_arg(self) -> mf2::ArgValue
impl<T: mf2::IntoArg + core::marker::Copy> mf2::IntoArg for &T
pub fn &T::into_arg(self) -> mf2::ArgValue
pub trait mf2::IntoMarkupHandler
pub fn mf2::IntoMarkupHandler::into_markup_handler(self) -> alloc::sync::Arc<dyn mf2::MarkupHandler>
impl mf2::IntoMarkupHandler for alloc::sync::Arc<dyn mf2::MarkupHandler>
pub fn alloc::sync::Arc<dyn mf2::MarkupHandler>::into_markup_handler(self) -> alloc::sync::Arc<dyn mf2::MarkupHandler>
impl<H: mf2::MarkupHandler + 'static> mf2::IntoMarkupHandler for mf2::Handler<H>
pub fn mf2::Handler<H>::into_markup_handler(self) -> alloc::sync::Arc<dyn mf2::MarkupHandler>
pub trait mf2::MarkupHandler: core::marker::Send + core::marker::Sync
pub fn mf2::MarkupHandler::as_any(&self) -> &dyn core::any::Any
pub trait mf2::Message
pub fn mf2::Message::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::Message::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::Message for mf2::Tr
pub fn mf2::Tr::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::Tr::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::Message for mf2::TrArgs
pub fn mf2::TrArgs::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrArgs::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::Message for mf2::TrDyn
pub fn mf2::TrDyn::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrDyn::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
impl mf2::Message for mf2::TrRich
pub fn mf2::TrRich::parts(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::parts::PartSink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::TrRich::write(&self, &mf2_runtime::format::Formatter<'_>, &mut dyn mf2_runtime::sink::Sink, &mut dyn mf2_runtime::sink::ErrorSink)
pub fn mf2::compile_str(&str, &str) -> core::result::Result<mf2::Compiled, mf2::CompileError>
pub fn mf2::compile_str_stripped(&str, &str) -> core::result::Result<mf2::Compiled, mf2::CompileError>