Skip to main content

Normal

Trait Normal 

Source
pub trait Normal<T> {
    // Required method
    fn normal(self) -> Result<T>;
}
Expand description

Normalization trait for value types (e.g., getting a zeroed-out value).

Required Methods§

Source

fn normal(self) -> Result<T>

Returns the generalized normal or default representation of a type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Normal<Value> for ValType

Implementors§