pub trait FunctionFmt<D: Dialect> {
// Required methods
fn base_function_name() -> &'static str;
fn half_support() -> bool;
// Provided methods
fn function_name(elem: Elem<D>) -> String { ... }
fn format_unary<Input: Display>(
f: &mut Formatter<'_>,
input: Input,
elem: Elem<D>,
) -> Result { ... }
}
Required Methods§
fn base_function_name() -> &'static str
fn half_support() -> bool
Provided Methods§
fn function_name(elem: Elem<D>) -> String
fn format_unary<Input: Display>( f: &mut Formatter<'_>, input: Input, elem: Elem<D>, ) -> Result
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.