pub trait CompileConstArray {
    // Required methods
    fn const_array_type(&self) -> String;
    fn const_array_val(&self) -> String;

    // Provided methods
    fn array_declaration(
        &self,
        attrs: &str,
        vis: &str,
        declaration_type: DeclarationType,
        name: &str
    ) -> String { ... }
    fn const_array_declaration(
        &self,
        attrs: &str,
        vis: &str,
        name: &str
    ) -> String { ... }
    fn static_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§

source

fn const_array_type(&self) -> String

Like const_type, but for a fixed-size array.

source

fn const_array_val(&self) -> String

Like const_val, but for a fixed-size array.

Provided Methods§

source

fn array_declaration( &self, attrs: &str, vis: &str, declaration_type: DeclarationType, name: &str ) -> String

Like declaration, but for a fixed-size array.

source

fn const_array_declaration(&self, attrs: &str, vis: &str, name: &str) -> String

Like const_declaration, but for a fixed-size array.

source

fn static_array_declaration(&self, attrs: &str, vis: &str, name: &str) -> String

Like static_declaration, but for a fixed-size array.

Implementations on Foreign Types§

source§

impl CompileConstArray for &str

source§

impl CompileConstArray for str

source§

impl CompileConstArray for ()

source§

impl CompileConstArray for String

source§

impl<A: CompileConstArray, B: CompileConstArray> CompileConstArray for (A, B)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray> CompileConstArray for (A, B, C)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray> CompileConstArray for (A, B, C, D)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray> CompileConstArray for (A, B, C, D, E)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray> CompileConstArray for (A, B, C, D, E, F)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray, L: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray, L: CompileConstArray, M: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K, L, M)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray, L: CompileConstArray, M: CompileConstArray, N: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray, L: CompileConstArray, M: CompileConstArray, N: CompileConstArray, O: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

source§

impl<A: CompileConstArray, B: CompileConstArray, C: CompileConstArray, D: CompileConstArray, E: CompileConstArray, F: CompileConstArray, G: CompileConstArray, H: CompileConstArray, I: CompileConstArray, J: CompileConstArray, K: CompileConstArray, L: CompileConstArray, M: CompileConstArray, N: CompileConstArray, O: CompileConstArray, P: CompileConstArray> CompileConstArray for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

impl<T: CompileConst> CompileConstArray for &[T]

source§

impl<T: CompileConst> CompileConstArray for Vec<T>

source§

impl<T: CompileConstArray + Clone> CompileConstArray for Cow<'_, T>

source§

impl<T: CompileConstArray> CompileConstArray for Box<T>

source§

impl<T: CompileConstArray> CompileConstArray for Rc<T>

source§

impl<T: CompileConstArray> CompileConstArray for Arc<T>

Implementors§