[go: up one dir, main page]

Formatted

Trait Formatted 

Source
pub trait Formatted {
    // Required method
    fn get_format() -> (BaseType, ContainerType);
}
Expand description

A trait that statically links simple data types to constant formats.

Required Methods§

Source

fn get_format() -> (BaseType, ContainerType)

Get the associated constant format.

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.

Implementations on Foreign Types§

Source§

impl<T> Formatted for [T; 2]
where T: BaseTyped,

Source§

impl<T> Formatted for [T; 3]
where T: BaseTyped,

Source§

impl<T> Formatted for [T; 4]
where T: BaseTyped,

Source§

impl<T> Formatted for [[T; 2]; 2]
where T: BaseTyped,

Source§

impl<T> Formatted for [[T; 3]; 3]
where T: BaseTyped,

Source§

impl<T> Formatted for [[T; 4]; 3]
where T: BaseTyped,

Source§

impl<T> Formatted for [[T; 4]; 4]
where T: BaseTyped,

Implementors§

Source§

impl<T> Formatted for T
where T: BaseTyped,