Complete StaticVec implementation.

This commit is contained in:
Stephen Chung
2020-05-17 22:19:49 +08:00
parent a2c50879fe
commit 8b5550eeb6
11 changed files with 373 additions and 169 deletions

View File

@@ -61,8 +61,3 @@ pub fn unsafe_cast_var_name_to_lifetime<'s>(name: &str, state: &State) -> Cow<'s
name.to_string().into()
}
}
/// Provide a type instance that is uninitialized.
pub fn unsafe_uninit<T>() -> T {
unsafe { mem::MaybeUninit::uninit().assume_init() }
}