pub trait I18nStringBuilderExt {
// Required methods
fn display<D: Display + ?Sized>(display: &D) -> Self;
fn debug<D: Debug + ?Sized>(debug: &D) -> Self;
fn template_display<D: Display + ?Sized>(display: &D) -> Self;
fn template_debug<D: Debug + ?Sized>(debug: &D) -> Self;
}Expand description
Extension trait for I18nString to build it from other types.
Required Methods§
Sourcefn display<D: Display + ?Sized>(display: &D) -> Self
fn display<D: Display + ?Sized>(display: &D) -> Self
Create a new I18nString::Literal from a Display type.
Sourcefn debug<D: Debug + ?Sized>(debug: &D) -> Self
fn debug<D: Debug + ?Sized>(debug: &D) -> Self
Create a new I18nString::Literal from a Debug type.
Sourcefn template_display<D: Display + ?Sized>(display: &D) -> Self
fn template_display<D: Display + ?Sized>(display: &D) -> Self
Create a new I18nString::Template from a Display type.
Sourcefn template_debug<D: Debug + ?Sized>(debug: &D) -> Self
fn template_debug<D: Debug + ?Sized>(debug: &D) -> Self
Create a new I18nString::Template from a Debug type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.