Skip to main content

Normalizable

Trait Normalizable 

Source
pub trait Normalizable {
    // Provided methods
    fn normalizations() -> &'static [Normalization] { ... }
    fn normalize_attributes(attrs: &mut HashMap<String, Value>) { ... }
}
Expand description

Trait for models that declare normalizations.

Provided Methods§

Source

fn normalizations() -> &'static [Normalization]

Returns the normalizations declared for this model.

Source

fn normalize_attributes(attrs: &mut HashMap<String, Value>)

Applies all normalizations to the given attribute map.

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.

Implementors§