Skip to main content

lazy_static_include_array

Macro lazy_static_include_array 

Source
macro_rules! lazy_static_include_array {
    ( @i [$t:ident; $s:expr], $path:expr ) => { ... };
    ( @u [$t:ident; $s:expr], $path:expr ) => { ... };
    ( @f [$t:ident; $s:expr], $path:expr ) => { ... };
    ( @c [$t:ident; $s:expr], $path:expr ) => { ... };
    ( @b [$t:ident; $s:expr], $path:expr ) => { ... };
    ( @s [$s:expr], $path:expr ) => { ... };
    ( @type [isize; $s:expr], $path:expr ) => { ... };
    ( @type [i8; $s:expr], $path:expr ) => { ... };
    ( @type [i16; $s:expr], $path:expr ) => { ... };
    ( @type [i32; $s:expr], $path:expr ) => { ... };
    ( @type [i64; $s:expr], $path:expr ) => { ... };
    ( @type [i128; $s:expr], $path:expr ) => { ... };
    ( @type [usize; $s:expr], $path:expr ) => { ... };
    ( @type [u8; $s:expr], $path:expr ) => { ... };
    ( @type [u16; $s:expr], $path:expr ) => { ... };
    ( @type [u32; $s:expr], $path:expr ) => { ... };
    ( @type [u64; $s:expr], $path:expr ) => { ... };
    ( @type [u128; $s:expr], $path:expr ) => { ... };
    ( @type [f32; $s:expr], $path:expr ) => { ... };
    ( @type [f64; $s:expr], $path:expr ) => { ... };
    ( @type [char; $s:expr], $path:expr ) => { ... };
    ( @type [bool; $s:expr], $path:expr ) => { ... };
    ( @type [&'static str; $s:expr], $path:expr ) => { ... };
    ( @unit $(#[$attr: meta])* $name:ident: [$(& $lt:lifetime)? $t:ident; $s:expr] => $path:expr ) => { ... };
    ( @unit $(#[$attr: meta])* pub$(($($v:tt)+))? $name:ident: [$(& $lt:lifetime)? $t:ident; $s:expr] => $path:expr ) => { ... };
    ( $($(#[$attr: meta])* $name:ident: [$(& $lt:lifetime)? $t:ident; $s:expr] => $path:expr),* $(,)* ) => { ... };
    ( $($(#[$attr: meta])* pub$(($($v:tt)+))? $name:ident: [$(& $lt:lifetime)? $t:ident; $s:expr] => $path:expr),* $(,)* ) => { ... };
}
Expand description

Includes a file containing a rust array.

The file is located relative to the directory containing the manifest of your package.