Trait const_gen::CompileConstArray [−][src]
pub trait CompileConstArray {
fn const_array_type(&self) -> String;
fn const_array_val(&self) -> String;
fn const_array_declaration(&self, 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.
Provided methods
fn const_array_declaration(&self, vis: &str, name: &str) -> String
fn const_array_declaration(&self, vis: &str, name: &str) -> String
Like const_declaration, but for a fixed-size array.