vec-const
This crate used to break some rules to give you a Vec declared as const. This was unnecessary, as std::borrow::Cow
is capable of providing equivalent functionality in a safe way with a usable API. The latest version of this crate just wraps input in a Cow::Borrowed([T])
. You don't need to use this crate at all, just sdo it yourself!
use vec_const;
use Cow;
;
const A_VEC_CONST: = vec_const!;