Trait const_gen::CompileConstArray
source · [−]pub trait CompileConstArray {
fn const_array_type(&self) -> String;
fn const_array_val(&self) -> String;
fn const_array_declaration(&self, attrs: &str, vis: &str, name: &str) -> String { ... }
}Expand description
Trait which defines how an array-representable type should be represented as a const array
Required Methods
fn const_array_type(&self) -> String
fn const_array_type(&self) -> String
Like const_type, but for a fixed-size array.
fn const_array_val(&self) -> String
fn const_array_val(&self) -> String
Like const_val, but for a fixed-size array.