macro_rules! ram_storage {
(
name=$Name:ident,
backend=$Backend:ident,
trait=$StorageTrait:path,
erase_value=$erase_value:expr,
read_size=$read_size:expr,
write_size=$write_size:expr,
cache_size_ty=$cache_size:path,
block_size=$block_size:expr,
block_count=$block_count:expr,
lookaheadwords_size_ty=$lookaheadwords_size:path,
filename_max_plus_one_ty=$filename_max_plus_one:path,
path_max_plus_one_ty=$path_max_plus_one:path,
result=$Result:ident,
) => { ... };
(tiny) => { ... };
(large) => { ... };
}
A configurable implementation of the Storage trait in memory.