trait FormattingOpwhere
Self: Sized,{
// Required methods
fn format(
&self,
input: &'static str,
) -> Option<(Self, ConstValue, &'static str)>;
fn union(self, other: Self) -> Option<Self>;
fn bad_value() -> ConstValue;
// Provided method
fn format_all(
&self,
input: &'static [&'static str],
) -> Option<(Self, Value, Value, Value)> { ... }
}
Required Methods§
fn format( &self, input: &'static str, ) -> Option<(Self, ConstValue, &'static str)>
fn union(self, other: Self) -> Option<Self>
fn bad_value() -> ConstValue
Provided Methods§
fn format_all( &self, input: &'static [&'static str], ) -> Option<(Self, Value, Value, Value)>
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.