pub trait Conventions {
// Required methods
fn write_number(&self, out: &mut String, plain: &str);
fn write_money(&self, out: &mut String, amount: Money);
fn write_date(&self, out: &mut String, iso: &str);
fn write_variant(&self, out: &mut String, enumeration: &str, variant: &str);
}Required Methods§
fn write_number(&self, out: &mut String, plain: &str)
fn write_money(&self, out: &mut String, amount: Money)
fn write_date(&self, out: &mut String, iso: &str)
Sourcefn write_variant(&self, out: &mut String, enumeration: &str, variant: &str)
fn write_variant(&self, out: &mut String, enumeration: &str, variant: &str)
The variant’s label in the enumeration the translations register.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".