Skip to main content

Conventions

Trait Conventions 

Source
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§

Source

fn write_number(&self, out: &mut String, plain: &str)

Source

fn write_money(&self, out: &mut String, amount: Money)

Source

fn write_date(&self, out: &mut String, iso: &str)

Source

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".

Implementors§